Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Dispatcher | 62463 | 122 days ago | IN | 0 APE | 0.00120089 |
Loading...
Loading
Contract Name:
ReserveManager
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/IComptroller.sol"; import "./interfaces/ICToken.sol"; import "./interfaces/ICTokenAdmin.sol"; import "./interfaces/IBurner.sol"; import "./interfaces/IWeth.sol"; contract ReserveManager is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; uint public constant COOLDOWN_PERIOD = 1 days; address public constant ethAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /** * @notice comptroller contract */ IComptroller public immutable comptroller; /** * @notice weth contract */ address public immutable wethAddress; /** * @notice usdc contract */ address public immutable usdcAddress; /** * @notice the extraction ratio, scaled by 1e18 */ uint public ratio = 0.5e18; /** * @notice cToken admin to extract reserves */ mapping(address => address) public cTokenAdmins; /** * @notice burner contracts to convert assets into a specific token */ mapping(address => address) public burners; struct ReservesSnapshot { uint timestamp; uint totalReserves; } /** * @notice reserves snapshot that records every reserves update */ mapping(address => ReservesSnapshot) public reservesSnapshot; /** * @notice return if a cToken market is blocked from reserves sharing */ mapping(address => bool) public isBlocked; /** * @notice return if a cToken market should be burnt manually */ mapping(address => bool) public manualBurn; /** * @notice a manual burner that reseives assets whose onchain liquidity are not deep enough */ address public manualBurner; /** * @notice return if a cToken market is native token or not. */ mapping(address => bool) public isNativeMarket; /** * @notice a dispatcher that could dispatch reserves. */ address public dispatcher; /** * @notice Emitted when reserves are dispatched */ event Dispatch( address indexed token, uint indexed amount, address destination ); /** * @notice Emitted when a cToken's burner is updated */ event BurnerUpdated( address cToken, address oldBurner, address newBurner ); /** * @notice Emitted when the reserves extraction ratio is updated */ event RatioUpdated( uint oldRatio, uint newRatio ); /** * @notice Emitted when a token is seized */ event TokenSeized( address token, uint amount ); /** * @notice Emitted when a cToken market is blocked or unblocked from reserves sharing */ event MarketBlocked( address cToken, bool wasBlocked, bool isBlocked ); /** * @notice Emitted when a cToken market is determined to be manually burnt or not */ event MarketManualBurn( address cToken, bool wasManual, bool isManual ); /** * @notice Emitted when a manual burner is updated */ event ManualBurnerUpdated( address oldManualBurner, address newManualBurner ); /** * @notice Emitted when a native market is updated */ event NativeMarketUpdated( address cToken, bool isNative ); /** * @notice Emitted when a dispatcher is set */ event DispatcherSet(address dispatcher); constructor( address _owner, address _manualBurner, IComptroller _comptroller, address _wethAddress, address _usdcAddress ) { transferOwnership(_owner); manualBurner = _manualBurner; comptroller = _comptroller; wethAddress = _wethAddress; usdcAddress = _usdcAddress; // Set default ratio to 50%. ratio = 0.5e18; } /** * @notice Get the current block timestamp * @return The current block timestamp */ function getBlockTimestamp() public virtual view returns (uint) { return block.timestamp; } receive() external payable {} /* Mutative functions */ /** * @notice Execute reduce reserve and burn on multiple cTokens * @param cTokens The token address list */ function dispatchMultiple(address[] memory cTokens) external nonReentrant { require(msg.sender == owner() || msg.sender == dispatcher, "unauthorized"); for (uint i = 0; i < cTokens.length; i++) { dispatch(cTokens[i]); } } /** * @notice Seize the accidentally deposited tokens * @param token The token * @param amount The amount */ function seize(address token, uint amount) external onlyOwner { if (token == ethAddress) { payable(owner()).transfer(amount); } else { IERC20(token).safeTransfer(owner(), amount); } emit TokenSeized(token, amount); } /** * @notice Block or unblock a cToken from reserves sharing * @param cTokens The cToken address list * @param blocked Block from reserves sharing or not */ function setBlocked(address[] memory cTokens, bool[] memory blocked) external onlyOwner { require(cTokens.length == blocked.length, "invalid data"); for (uint i = 0; i < cTokens.length; i++) { bool wasBlocked = isBlocked[cTokens[i]]; isBlocked[cTokens[i]] = blocked[i]; emit MarketBlocked(cTokens[i], wasBlocked, blocked[i]); } } /** * @notice Set the burners of a list of tokens * @param cTokens The cToken address list * @param newBurners The burner address list */ function setBurners(address[] memory cTokens, address[] memory newBurners) external onlyOwner { require(cTokens.length == newBurners.length, "invalid data"); for (uint i = 0; i < cTokens.length; i++) { address oldBurner = burners[cTokens[i]]; burners[cTokens[i]] = newBurners[i]; emit BurnerUpdated(cTokens[i], oldBurner, newBurners[i]); } } /** * @notice Determine a market should be burnt manually or not * @param cTokens The cToken address list * @param manual The list of markets which should be burnt manually or not */ function setManualBurn(address[] memory cTokens, bool[] memory manual) external onlyOwner { require(cTokens.length == manual.length, "invalid data"); for (uint i = 0; i < cTokens.length; i++) { bool wasManual = manualBurn[cTokens[i]]; manualBurn[cTokens[i]] = manual[i]; emit MarketManualBurn(cTokens[i], wasManual, manual[i]); } } /** * @notice Set new manual burner * @param newManualBurner The new manual burner */ function setManualBurner(address newManualBurner) external onlyOwner { require(newManualBurner != address(0), "invalid new manual burner"); address oldManualBurner = manualBurner; manualBurner = newManualBurner; emit ManualBurnerUpdated(oldManualBurner, newManualBurner); } /** * @notice Adjust the extraction ratio * @param newRatio The new extraction ratio */ function adjustRatio(uint newRatio) external onlyOwner { require(newRatio <= 1e18, "invalid ratio"); uint oldRatio = ratio; ratio = newRatio; emit RatioUpdated(oldRatio, newRatio); } /** * @notice Seize the accidentally deposited tokens * @param cToken The cToken address * @param isNative It's native or not */ function setNativeMarket(address cToken, bool isNative) external onlyOwner { if (isNativeMarket[cToken] != isNative) { isNativeMarket[cToken] = isNative; emit NativeMarketUpdated(cToken, isNative); } } /** * @notice Set the new dispatcher * @param newDispatcher The new dispatcher */ function setDispatcher(address newDispatcher) external onlyOwner { dispatcher = newDispatcher; emit DispatcherSet(newDispatcher); } /* Internal functions */ /** * @notice Execute reduce reserve for cToken * @param cToken The cToken to dispatch reduce reserve operation */ function dispatch(address cToken) internal { require(!isBlocked[cToken], "market is blocked from reserves sharing"); require(comptroller.isMarketListed(cToken), "market not listed"); uint totalReserves = ICToken(cToken).totalReserves(); ReservesSnapshot memory snapshot = reservesSnapshot[cToken]; if (snapshot.timestamp > 0 && snapshot.totalReserves < totalReserves) { address cTokenAdmin = ICToken(cToken).admin(); require(snapshot.timestamp + COOLDOWN_PERIOD <= getBlockTimestamp(), "still in the cooldown period"); // Extract reserves through cTokenAdmin. uint reduceAmount = (totalReserves - snapshot.totalReserves) * ratio / 1e18; ICTokenAdmin(cTokenAdmin).extractReserves(cToken, reduceAmount); // Get total reserves from cToken again for snapshots. totalReserves = ICToken(cToken).totalReserves(); // Get the cToken underlying. address underlying; if (isNativeMarket[cToken]) { IWeth(wethAddress).deposit{value: reduceAmount}(); underlying = wethAddress; } else { underlying = ICToken(cToken).underlying(); } // In case someone transfers tokens in directly, which will cause the dispatch reverted, // we burn all the tokens in the contract here. uint burnAmount = IERC20(underlying).balanceOf(address(this)); address burner = burners[cToken]; if (manualBurn[cToken]) { // Send the underlying to the manual burner. burner = manualBurner; IERC20(underlying).safeTransfer(manualBurner, burnAmount); } else { // Allow the corresponding burner to pull the assets to burn. require(burner != address(0), "burner not set"); IERC20(underlying).safeIncreaseAllowance(burner, burnAmount); IBurner(burner).burn(underlying); } emit Dispatch(underlying, burnAmount, burner); } // Update the reserve snapshot. reservesSnapshot[cToken] = ReservesSnapshot({ timestamp: getBlockTimestamp(), totalReserves: totalReserves }); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev 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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBurner { function burn(address coin) external returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ICToken { function admin() external view returns (address); function symbol() external view returns (string memory); function underlying() external view returns (address); function totalReserves() external view returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ICTokenAdmin { function extractReserves(address cToken, uint reduceAmount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IComptroller { function isMarketListed(address cTokenAddress) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IWeth { function deposit() external payable; }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_manualBurner","type":"address"},{"internalType":"contract IComptroller","name":"_comptroller","type":"address"},{"internalType":"address","name":"_wethAddress","type":"address"},{"internalType":"address","name":"_usdcAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"cToken","type":"address"},{"indexed":false,"internalType":"address","name":"oldBurner","type":"address"},{"indexed":false,"internalType":"address","name":"newBurner","type":"address"}],"name":"BurnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"Dispatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"dispatcher","type":"address"}],"name":"DispatcherSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldManualBurner","type":"address"},{"indexed":false,"internalType":"address","name":"newManualBurner","type":"address"}],"name":"ManualBurnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"cToken","type":"address"},{"indexed":false,"internalType":"bool","name":"wasBlocked","type":"bool"},{"indexed":false,"internalType":"bool","name":"isBlocked","type":"bool"}],"name":"MarketBlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"cToken","type":"address"},{"indexed":false,"internalType":"bool","name":"wasManual","type":"bool"},{"indexed":false,"internalType":"bool","name":"isManual","type":"bool"}],"name":"MarketManualBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"cToken","type":"address"},{"indexed":false,"internalType":"bool","name":"isNative","type":"bool"}],"name":"NativeMarketUpdated","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":"uint256","name":"oldRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"RatioUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenSeized","type":"event"},{"inputs":[],"name":"COOLDOWN_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"adjustRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cTokenAdmins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract IComptroller","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"cTokens","type":"address[]"}],"name":"dispatchMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dispatcher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isNativeMarket","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"manualBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualBurner","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":"ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reservesSnapshot","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalReserves","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"seize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"cTokens","type":"address[]"},{"internalType":"bool[]","name":"blocked","type":"bool[]"}],"name":"setBlocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"cTokens","type":"address[]"},{"internalType":"address[]","name":"newBurners","type":"address[]"}],"name":"setBurners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDispatcher","type":"address"}],"name":"setDispatcher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"cTokens","type":"address[]"},{"internalType":"bool[]","name":"manual","type":"bool[]"}],"name":"setManualBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newManualBurner","type":"address"}],"name":"setManualBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cToken","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"}],"name":"setNativeMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wethAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040526706f05b59d3b200006002553480156200001d57600080fd5b50604051620021f9380380620021f98339810160408190526200004091620001df565b6200004b3362000098565b600180556200005a85620000e8565b600880546001600160a01b0319166001600160a01b03958616179055918316608052821660a0521660c052506706f05b59d3b200006002556200025f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000f26200016b565b6001600160a01b0381166200015d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b620001688162000098565b50565b6000546001600160a01b03163314620001c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000154565b565b6001600160a01b03811681146200016857600080fd5b600080600080600060a08688031215620001f857600080fd5b85516200020581620001c9565b60208701519095506200021881620001c9565b60408701519094506200022b81620001c9565b60608701519093506200023e81620001c9565b60808701519092506200025181620001c9565b809150509295509295909350565b60805160a05160c051611f55620002a460003960006101be015260008181610318015281816113e001526114540152600081816103cc015261109b0152611f556000f3fe6080604052600436106101a05760003560e01c80636e99d52f116100ec578063cb7e90571161008a578063eb9253c011610064578063eb9253c01461053f578063f2fde38b1461055f578063f92dc3e91461057f578063fbac3951146105b557600080fd5b8063cb7e9057146104df578063d1056f32146104ff578063d1448ea01461051f57600080fd5b8063796b89b9116100c6578063796b89b91461046e57806380a52f13146104815780638da5cb5b146104a1578063ba22bd76146104bf57600080fd5b80636e99d52f1461041e578063715018a61461044357806371ca337d1461045857600080fd5b806341398b1511610159578063585d332d11610133578063585d332d1461035a57806359fb459e1461037a5780635fe3b567146103ba57806366cadfba146103ee57600080fd5b806341398b15146102de5780634f0e0ef314610306578063507448431461033a57600080fd5b806302d45457146101ac57806303d41e0e146101fd57806311d9850e146102335780632a6823651461027c578063305775881461029e57806337a7a334146102be57600080fd5b366101a757005b600080fd5b3480156101b857600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020957600080fd5b506101e0610218366004611a88565b6004602052600090815260409020546001600160a01b031681565b34801561023f57600080fd5b5061026761024e366004611a88565b6005602052600090815260409020805460019091015482565b604080519283526020830191909152016101f4565b34801561028857600080fd5b5061029c610297366004611b99565b6105e5565b005b3480156102aa57600080fd5b5061029c6102b9366004611c5d565b610785565b3480156102ca57600080fd5b5061029c6102d9366004611c96565b610818565b3480156102ea57600080fd5b506101e073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561031257600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b34801561034657600080fd5b5061029c610355366004611a88565b6108a6565b34801561036657600080fd5b5061029c610375366004611b99565b61095e565b34801561038657600080fd5b506103aa610395366004611a88565b60076020526000908152604090205460ff1681565b60405190151581526020016101f4565b3480156103c657600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b3480156103fa57600080fd5b506103aa610409366004611a88565b60096020526000908152604090205460ff1681565b34801561042a57600080fd5b506104356201518081565b6040519081526020016101f4565b34801561044f57600080fd5b5061029c610af0565b34801561046457600080fd5b5061043560025481565b34801561047a57600080fd5b5042610435565b34801561048d57600080fd5b5061029c61049c366004611caf565b610b04565b3480156104ad57600080fd5b506000546001600160a01b03166101e0565b3480156104cb57600080fd5b5061029c6104da366004611a88565b610ca9565b3480156104eb57600080fd5b50600a546101e0906001600160a01b031681565b34801561050b57600080fd5b506008546101e0906001600160a01b031681565b34801561052b57600080fd5b5061029c61053a366004611d13565b610d05565b34801561054b57600080fd5b5061029c61055a366004611d48565b610db8565b34801561056b57600080fd5b5061029c61057a366004611a88565b610e89565b34801561058b57600080fd5b506101e061059a366004611a88565b6003602052600090815260409020546001600160a01b031681565b3480156105c157600080fd5b506103aa6105d0366004611a88565b60066020526000908152604090205460ff1681565b6105ed610eff565b80518251146106175760405162461bcd60e51b815260040161060e90611d74565b60405180910390fd5b60005b82518110156107805760006006600085848151811061063b5761063b611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff16905082828151811061068557610685611d9a565b6020026020010151600660008685815181106106a3576106a3611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507fe708a906b7e44981bc320303a1b40ebac3e7e5fc33044ee8c98f9d441e83231484838151811061071557610715611d9a565b60200260200101518285858151811061073057610730611d9a565b6020026020010151604051610765939291906001600160a01b0393909316835290151560208301521515604082015260600190565b60405180910390a1508061077881611dc6565b91505061061a565b505050565b61078d610eff565b6001600160a01b03821660009081526009602052604090205460ff16151581151514610814576001600160a01b038216600081815260096020908152604091829020805460ff19168515159081179091558251938452908301527f85a031e5867bb0d8b29f51514ec1e5686b88de5ef85b20e21951b69d60ae275e91015b60405180910390a15b5050565b610820610eff565b670de0b6b3a76400008111156108685760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420726174696f60981b604482015260640161060e565b600280549082905560408051828152602081018490527f3edd74a0325c6bec69d13fe3535717e39b00ff7b4d7aaa83efef9094b33b9683910161080b565b6108ae610eff565b6001600160a01b0381166109045760405162461bcd60e51b815260206004820152601960248201527f696e76616c6964206e6577206d616e75616c206275726e657200000000000000604482015260640161060e565b600880546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f70faf679176d368ef646486262569090d32c93046b12c561b83aef24a599c740910161080b565b610966610eff565b80518251146109875760405162461bcd60e51b815260040161060e90611d74565b60005b8251811015610780576000600760008584815181106109ab576109ab611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff1690508282815181106109f5576109f5611d9a565b602002602001015160076000868581518110610a1357610a13611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f0eebbabfe76e717b9d64b861d8bd5c15a4dcb87e132a5131797fcabcdaec306e848381518110610a8557610a85611d9a565b602002602001015182858581518110610aa057610aa0611d9a565b6020026020010151604051610ad5939291906001600160a01b0393909316835290151560208301521515604082015260600190565b60405180910390a15080610ae881611dc6565b91505061098a565b610af8610eff565b610b026000610f59565b565b610b0c610eff565b8051825114610b2d5760405162461bcd60e51b815260040161060e90611d74565b60005b825181101561078057600060046000858481518110610b5157610b51611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03169050828281518110610ba157610ba1611d9a565b602002602001015160046000868581518110610bbf57610bbf611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f1157fb8d6658622c605f6808d98008e2678911cdb4fd0af271f559b0f29ea949848381518110610c3e57610c3e611d9a565b602002602001015182858581518110610c5957610c59611d9a565b6020026020010151604051610c8e939291906001600160a01b0393841681529183166020830152909116604082015260600190565b60405180910390a15080610ca181611dc6565b915050610b30565b610cb1610eff565b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f76fb8a637e2dd165327482ba43c5a87f91ae0db340dd5c17d7dcbde2266dfb2c9060200160405180910390a150565b610d0d610fa9565b6000546001600160a01b0316331480610d305750600a546001600160a01b031633145b610d6b5760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015260640161060e565b60005b8151811015610dab57610d99828281518110610d8c57610d8c611d9a565b6020026020010151611003565b80610da381611dc6565b915050610d6e565b50610db560018055565b50565b610dc0610eff565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610e2457600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610e1e573d6000803e3d6000fd5b50610e4a565b610e4a610e396000546001600160a01b031690565b6001600160a01b03841690836116fb565b604080516001600160a01b0384168152602081018390527fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b6910161080b565b610e91610eff565b6001600160a01b038116610ef65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060e565b610db581610f59565b6000546001600160a01b03163314610b025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161060e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415610ffc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161060e565b6002600155565b6001600160a01b03811660009081526006602052604090205460ff161561107c5760405162461bcd60e51b815260206004820152602760248201527f6d61726b657420697320626c6f636b65642066726f6d2072657365727665732060448201526673686172696e6760c81b606482015260840161060e565b604051633d98a1e560e01b81526001600160a01b0382811660048301527f00000000000000000000000000000000000000000000000000000000000000001690633d98a1e590602401602060405180830381865afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111069190611de1565b6111465760405162461bcd60e51b81526020600482015260116024820152701b585c9ad95d081b9bdd081b1a5cdd1959607a1b604482015260640161060e565b6000816001600160a01b0316638f840ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111aa9190611dfe565b6001600160a01b038316600090815260056020908152604091829020825180840190935280548084526001909101549183019190915291925090158015906111f55750818160200151105b156116b1576000836001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125e9190611e17565b9050428251611271906201518090611e34565b11156112bf5760405162461bcd60e51b815260206004820152601c60248201527f7374696c6c20696e2074686520636f6f6c646f776e20706572696f6400000000604482015260640161060e565b6000670de0b6b3a76400006002548460200151866112dd9190611e4c565b6112e79190611e63565b6112f19190611e82565b6040516307da3c1d60e01b81526001600160a01b03878116600483015260248201839052919250908316906307da3c1d90604401600060405180830381600087803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b50505050846001600160a01b0316638f840ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b99190611dfe565b6001600160a01b0386166000908152600960205260408120549195509060ff161561147a577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561143957600080fd5b505af115801561144d573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000090506114df565b856001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190611e17565b90505b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154a9190611dfe565b6001600160a01b03808916600090815260046020908152604080832054600790925290912054929350169060ff161561159f57506008546001600160a01b039081169061159a90841682846116fb565b611668565b6001600160a01b0381166115e65760405162461bcd60e51b815260206004820152600e60248201526d189d5c9b995c881b9bdd081cd95d60921b604482015260640161060e565b6115fa6001600160a01b038416828461175e565b60405163226bf2d160e21b81526001600160a01b0384811660048301528216906389afcb44906024016020604051808303816000875af1158015611642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116669190611dfe565b505b6040516001600160a01b0382811682528391908516907f3046a3d146b187c183dda3e958fabea0fd764b952de1b2e98e30f946ddc2aa569060200160405180910390a350505050505b60405180604001604052806116c34290565b81526020908101939093526001600160a01b039093166000908152600583526040902083518155929091015160019092019190915550565b6040516001600160a01b03831660248201526044810182905261078090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611811565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156117ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d29190611dfe565b905061180b8463095ea7b360e01b856117eb8686611e34565b6040516001600160a01b0390921660248301526044820152606401611727565b50505050565b6000611866826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118e69092919063ffffffff16565b90508051600014806118875750808060200190518101906118879190611de1565b6107805760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161060e565b60606118f584846000856118fd565b949350505050565b60608247101561195e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161060e565b600080866001600160a01b0316858760405161197a9190611ed0565b60006040518083038185875af1925050503d80600081146119b7576040519150601f19603f3d011682016040523d82523d6000602084013e6119bc565b606091505b50915091506119cd878383876119d8565b979650505050505050565b60608315611a44578251611a3d576001600160a01b0385163b611a3d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161060e565b50816118f5565b6118f58383815115611a595781518083602001fd5b8060405162461bcd60e51b815260040161060e9190611eec565b6001600160a01b0381168114610db557600080fd5b600060208284031215611a9a57600080fd5b8135611aa581611a73565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aeb57611aeb611aac565b604052919050565b600067ffffffffffffffff821115611b0d57611b0d611aac565b5060051b60200190565b600082601f830112611b2857600080fd5b81356020611b3d611b3883611af3565b611ac2565b82815260059290921b84018101918181019086841115611b5c57600080fd5b8286015b84811015611b80578035611b7381611a73565b8352918301918301611b60565b509695505050505050565b8015158114610db557600080fd5b60008060408385031215611bac57600080fd5b823567ffffffffffffffff80821115611bc457600080fd5b611bd086838701611b17565b9350602091508185013581811115611be757600080fd5b85019050601f81018613611bfa57600080fd5b8035611c08611b3882611af3565b81815260059190911b82018301908381019088831115611c2757600080fd5b928401925b82841015611c4e578335611c3f81611b8b565b82529284019290840190611c2c565b80955050505050509250929050565b60008060408385031215611c7057600080fd5b8235611c7b81611a73565b91506020830135611c8b81611b8b565b809150509250929050565b600060208284031215611ca857600080fd5b5035919050565b60008060408385031215611cc257600080fd5b823567ffffffffffffffff80821115611cda57600080fd5b611ce686838701611b17565b93506020850135915080821115611cfc57600080fd5b50611d0985828601611b17565b9150509250929050565b600060208284031215611d2557600080fd5b813567ffffffffffffffff811115611d3c57600080fd5b6118f584828501611b17565b60008060408385031215611d5b57600080fd5b8235611d6681611a73565b946020939093013593505050565b6020808252600c908201526b696e76616c6964206461746160a01b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611dda57611dda611db0565b5060010190565b600060208284031215611df357600080fd5b8151611aa581611b8b565b600060208284031215611e1057600080fd5b5051919050565b600060208284031215611e2957600080fd5b8151611aa581611a73565b60008219821115611e4757611e47611db0565b500190565b600082821015611e5e57611e5e611db0565b500390565b6000816000190483118215151615611e7d57611e7d611db0565b500290565b600082611e9f57634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611ebf578181015183820152602001611ea7565b8381111561180b5750506000910152565b60008251611ee2818460208701611ea4565b9190910192915050565b6020815260008251806020840152611f0b816040850160208701611ea4565b601f01601f1916919091016040019291505056fea2646970667358221220cf8ff260106966eb91f4e8833ebe756aa62aab16d3a59dd194753dc8f49214d864736f6c634300080b0033000000000000000000000000fe4ae81968dfffc5081e07dac9b3264908df40e60000000000000000000000007509271263fa1ddb1e4cf17d036a62bdd4625511000000000000000000000000c2c583093af9241e17b2ec51844154468d21bf6f00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b557000000000000000000000000a2235d059f80e176d931ef76b6c51953eb3fbef4
Deployed Bytecode
0x6080604052600436106101a05760003560e01c80636e99d52f116100ec578063cb7e90571161008a578063eb9253c011610064578063eb9253c01461053f578063f2fde38b1461055f578063f92dc3e91461057f578063fbac3951146105b557600080fd5b8063cb7e9057146104df578063d1056f32146104ff578063d1448ea01461051f57600080fd5b8063796b89b9116100c6578063796b89b91461046e57806380a52f13146104815780638da5cb5b146104a1578063ba22bd76146104bf57600080fd5b80636e99d52f1461041e578063715018a61461044357806371ca337d1461045857600080fd5b806341398b1511610159578063585d332d11610133578063585d332d1461035a57806359fb459e1461037a5780635fe3b567146103ba57806366cadfba146103ee57600080fd5b806341398b15146102de5780634f0e0ef314610306578063507448431461033a57600080fd5b806302d45457146101ac57806303d41e0e146101fd57806311d9850e146102335780632a6823651461027c578063305775881461029e57806337a7a334146102be57600080fd5b366101a757005b600080fd5b3480156101b857600080fd5b506101e07f000000000000000000000000a2235d059f80e176d931ef76b6c51953eb3fbef481565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020957600080fd5b506101e0610218366004611a88565b6004602052600090815260409020546001600160a01b031681565b34801561023f57600080fd5b5061026761024e366004611a88565b6005602052600090815260409020805460019091015482565b604080519283526020830191909152016101f4565b34801561028857600080fd5b5061029c610297366004611b99565b6105e5565b005b3480156102aa57600080fd5b5061029c6102b9366004611c5d565b610785565b3480156102ca57600080fd5b5061029c6102d9366004611c96565b610818565b3480156102ea57600080fd5b506101e073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561031257600080fd5b506101e07f00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b55781565b34801561034657600080fd5b5061029c610355366004611a88565b6108a6565b34801561036657600080fd5b5061029c610375366004611b99565b61095e565b34801561038657600080fd5b506103aa610395366004611a88565b60076020526000908152604090205460ff1681565b60405190151581526020016101f4565b3480156103c657600080fd5b506101e07f000000000000000000000000c2c583093af9241e17b2ec51844154468d21bf6f81565b3480156103fa57600080fd5b506103aa610409366004611a88565b60096020526000908152604090205460ff1681565b34801561042a57600080fd5b506104356201518081565b6040519081526020016101f4565b34801561044f57600080fd5b5061029c610af0565b34801561046457600080fd5b5061043560025481565b34801561047a57600080fd5b5042610435565b34801561048d57600080fd5b5061029c61049c366004611caf565b610b04565b3480156104ad57600080fd5b506000546001600160a01b03166101e0565b3480156104cb57600080fd5b5061029c6104da366004611a88565b610ca9565b3480156104eb57600080fd5b50600a546101e0906001600160a01b031681565b34801561050b57600080fd5b506008546101e0906001600160a01b031681565b34801561052b57600080fd5b5061029c61053a366004611d13565b610d05565b34801561054b57600080fd5b5061029c61055a366004611d48565b610db8565b34801561056b57600080fd5b5061029c61057a366004611a88565b610e89565b34801561058b57600080fd5b506101e061059a366004611a88565b6003602052600090815260409020546001600160a01b031681565b3480156105c157600080fd5b506103aa6105d0366004611a88565b60066020526000908152604090205460ff1681565b6105ed610eff565b80518251146106175760405162461bcd60e51b815260040161060e90611d74565b60405180910390fd5b60005b82518110156107805760006006600085848151811061063b5761063b611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff16905082828151811061068557610685611d9a565b6020026020010151600660008685815181106106a3576106a3611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507fe708a906b7e44981bc320303a1b40ebac3e7e5fc33044ee8c98f9d441e83231484838151811061071557610715611d9a565b60200260200101518285858151811061073057610730611d9a565b6020026020010151604051610765939291906001600160a01b0393909316835290151560208301521515604082015260600190565b60405180910390a1508061077881611dc6565b91505061061a565b505050565b61078d610eff565b6001600160a01b03821660009081526009602052604090205460ff16151581151514610814576001600160a01b038216600081815260096020908152604091829020805460ff19168515159081179091558251938452908301527f85a031e5867bb0d8b29f51514ec1e5686b88de5ef85b20e21951b69d60ae275e91015b60405180910390a15b5050565b610820610eff565b670de0b6b3a76400008111156108685760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420726174696f60981b604482015260640161060e565b600280549082905560408051828152602081018490527f3edd74a0325c6bec69d13fe3535717e39b00ff7b4d7aaa83efef9094b33b9683910161080b565b6108ae610eff565b6001600160a01b0381166109045760405162461bcd60e51b815260206004820152601960248201527f696e76616c6964206e6577206d616e75616c206275726e657200000000000000604482015260640161060e565b600880546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f70faf679176d368ef646486262569090d32c93046b12c561b83aef24a599c740910161080b565b610966610eff565b80518251146109875760405162461bcd60e51b815260040161060e90611d74565b60005b8251811015610780576000600760008584815181106109ab576109ab611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff1690508282815181106109f5576109f5611d9a565b602002602001015160076000868581518110610a1357610a13611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f0eebbabfe76e717b9d64b861d8bd5c15a4dcb87e132a5131797fcabcdaec306e848381518110610a8557610a85611d9a565b602002602001015182858581518110610aa057610aa0611d9a565b6020026020010151604051610ad5939291906001600160a01b0393909316835290151560208301521515604082015260600190565b60405180910390a15080610ae881611dc6565b91505061098a565b610af8610eff565b610b026000610f59565b565b610b0c610eff565b8051825114610b2d5760405162461bcd60e51b815260040161060e90611d74565b60005b825181101561078057600060046000858481518110610b5157610b51611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03169050828281518110610ba157610ba1611d9a565b602002602001015160046000868581518110610bbf57610bbf611d9a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f1157fb8d6658622c605f6808d98008e2678911cdb4fd0af271f559b0f29ea949848381518110610c3e57610c3e611d9a565b602002602001015182858581518110610c5957610c59611d9a565b6020026020010151604051610c8e939291906001600160a01b0393841681529183166020830152909116604082015260600190565b60405180910390a15080610ca181611dc6565b915050610b30565b610cb1610eff565b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f76fb8a637e2dd165327482ba43c5a87f91ae0db340dd5c17d7dcbde2266dfb2c9060200160405180910390a150565b610d0d610fa9565b6000546001600160a01b0316331480610d305750600a546001600160a01b031633145b610d6b5760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015260640161060e565b60005b8151811015610dab57610d99828281518110610d8c57610d8c611d9a565b6020026020010151611003565b80610da381611dc6565b915050610d6e565b50610db560018055565b50565b610dc0610eff565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610e2457600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610e1e573d6000803e3d6000fd5b50610e4a565b610e4a610e396000546001600160a01b031690565b6001600160a01b03841690836116fb565b604080516001600160a01b0384168152602081018390527fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b6910161080b565b610e91610eff565b6001600160a01b038116610ef65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060e565b610db581610f59565b6000546001600160a01b03163314610b025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161060e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415610ffc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161060e565b6002600155565b6001600160a01b03811660009081526006602052604090205460ff161561107c5760405162461bcd60e51b815260206004820152602760248201527f6d61726b657420697320626c6f636b65642066726f6d2072657365727665732060448201526673686172696e6760c81b606482015260840161060e565b604051633d98a1e560e01b81526001600160a01b0382811660048301527f000000000000000000000000c2c583093af9241e17b2ec51844154468d21bf6f1690633d98a1e590602401602060405180830381865afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111069190611de1565b6111465760405162461bcd60e51b81526020600482015260116024820152701b585c9ad95d081b9bdd081b1a5cdd1959607a1b604482015260640161060e565b6000816001600160a01b0316638f840ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111aa9190611dfe565b6001600160a01b038316600090815260056020908152604091829020825180840190935280548084526001909101549183019190915291925090158015906111f55750818160200151105b156116b1576000836001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125e9190611e17565b9050428251611271906201518090611e34565b11156112bf5760405162461bcd60e51b815260206004820152601c60248201527f7374696c6c20696e2074686520636f6f6c646f776e20706572696f6400000000604482015260640161060e565b6000670de0b6b3a76400006002548460200151866112dd9190611e4c565b6112e79190611e63565b6112f19190611e82565b6040516307da3c1d60e01b81526001600160a01b03878116600483015260248201839052919250908316906307da3c1d90604401600060405180830381600087803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b50505050846001600160a01b0316638f840ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b99190611dfe565b6001600160a01b0386166000908152600960205260408120549195509060ff161561147a577f00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b5576001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561143957600080fd5b505af115801561144d573d6000803e3d6000fd5b50505050507f00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b55790506114df565b856001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190611e17565b90505b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154a9190611dfe565b6001600160a01b03808916600090815260046020908152604080832054600790925290912054929350169060ff161561159f57506008546001600160a01b039081169061159a90841682846116fb565b611668565b6001600160a01b0381166115e65760405162461bcd60e51b815260206004820152600e60248201526d189d5c9b995c881b9bdd081cd95d60921b604482015260640161060e565b6115fa6001600160a01b038416828461175e565b60405163226bf2d160e21b81526001600160a01b0384811660048301528216906389afcb44906024016020604051808303816000875af1158015611642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116669190611dfe565b505b6040516001600160a01b0382811682528391908516907f3046a3d146b187c183dda3e958fabea0fd764b952de1b2e98e30f946ddc2aa569060200160405180910390a350505050505b60405180604001604052806116c34290565b81526020908101939093526001600160a01b039093166000908152600583526040902083518155929091015160019092019190915550565b6040516001600160a01b03831660248201526044810182905261078090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611811565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156117ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d29190611dfe565b905061180b8463095ea7b360e01b856117eb8686611e34565b6040516001600160a01b0390921660248301526044820152606401611727565b50505050565b6000611866826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118e69092919063ffffffff16565b90508051600014806118875750808060200190518101906118879190611de1565b6107805760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161060e565b60606118f584846000856118fd565b949350505050565b60608247101561195e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161060e565b600080866001600160a01b0316858760405161197a9190611ed0565b60006040518083038185875af1925050503d80600081146119b7576040519150601f19603f3d011682016040523d82523d6000602084013e6119bc565b606091505b50915091506119cd878383876119d8565b979650505050505050565b60608315611a44578251611a3d576001600160a01b0385163b611a3d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161060e565b50816118f5565b6118f58383815115611a595781518083602001fd5b8060405162461bcd60e51b815260040161060e9190611eec565b6001600160a01b0381168114610db557600080fd5b600060208284031215611a9a57600080fd5b8135611aa581611a73565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aeb57611aeb611aac565b604052919050565b600067ffffffffffffffff821115611b0d57611b0d611aac565b5060051b60200190565b600082601f830112611b2857600080fd5b81356020611b3d611b3883611af3565b611ac2565b82815260059290921b84018101918181019086841115611b5c57600080fd5b8286015b84811015611b80578035611b7381611a73565b8352918301918301611b60565b509695505050505050565b8015158114610db557600080fd5b60008060408385031215611bac57600080fd5b823567ffffffffffffffff80821115611bc457600080fd5b611bd086838701611b17565b9350602091508185013581811115611be757600080fd5b85019050601f81018613611bfa57600080fd5b8035611c08611b3882611af3565b81815260059190911b82018301908381019088831115611c2757600080fd5b928401925b82841015611c4e578335611c3f81611b8b565b82529284019290840190611c2c565b80955050505050509250929050565b60008060408385031215611c7057600080fd5b8235611c7b81611a73565b91506020830135611c8b81611b8b565b809150509250929050565b600060208284031215611ca857600080fd5b5035919050565b60008060408385031215611cc257600080fd5b823567ffffffffffffffff80821115611cda57600080fd5b611ce686838701611b17565b93506020850135915080821115611cfc57600080fd5b50611d0985828601611b17565b9150509250929050565b600060208284031215611d2557600080fd5b813567ffffffffffffffff811115611d3c57600080fd5b6118f584828501611b17565b60008060408385031215611d5b57600080fd5b8235611d6681611a73565b946020939093013593505050565b6020808252600c908201526b696e76616c6964206461746160a01b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611dda57611dda611db0565b5060010190565b600060208284031215611df357600080fd5b8151611aa581611b8b565b600060208284031215611e1057600080fd5b5051919050565b600060208284031215611e2957600080fd5b8151611aa581611a73565b60008219821115611e4757611e47611db0565b500190565b600082821015611e5e57611e5e611db0565b500390565b6000816000190483118215151615611e7d57611e7d611db0565b500290565b600082611e9f57634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611ebf578181015183820152602001611ea7565b8381111561180b5750506000910152565b60008251611ee2818460208701611ea4565b9190910192915050565b6020815260008251806020840152611f0b816040850160208701611ea4565b601f01601f1916919091016040019291505056fea2646970667358221220cf8ff260106966eb91f4e8833ebe756aa62aab16d3a59dd194753dc8f49214d864736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fe4ae81968dfffc5081e07dac9b3264908df40e60000000000000000000000007509271263fa1ddb1e4cf17d036a62bdd4625511000000000000000000000000c2c583093af9241e17b2ec51844154468d21bf6f00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b557000000000000000000000000a2235d059f80e176d931ef76b6c51953eb3fbef4
-----Decoded View---------------
Arg [0] : _owner (address): 0xfE4Ae81968dFFFC5081E07dAc9B3264908DF40e6
Arg [1] : _manualBurner (address): 0x7509271263fa1dDB1e4cf17D036a62bdD4625511
Arg [2] : _comptroller (address): 0xc2C583093Af9241E17B2Ec51844154468D21bF6F
Arg [3] : _wethAddress (address): 0x48b62137EdfA95a428D35C09E44256a739F6B557
Arg [4] : _usdcAddress (address): 0xA2235d059F80e176D931Ef76b6C51953Eb3fBEf4
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe4ae81968dfffc5081e07dac9b3264908df40e6
Arg [1] : 0000000000000000000000007509271263fa1ddb1e4cf17d036a62bdd4625511
Arg [2] : 000000000000000000000000c2c583093af9241e17b2ec51844154468d21bf6f
Arg [3] : 00000000000000000000000048b62137edfa95a428d35c09e44256a739f6b557
Arg [4] : 000000000000000000000000a2235d059f80e176d931ef76b6c51953eb3fbef4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.