Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 26 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20511588 | 18 days ago | IN | 0 ETH | 0.00050718 | ||||
Multicall | 20332192 | 43 days ago | IN | 0 ETH | 0.00182607 | ||||
Claim Dividend | 19189489 | 203 days ago | IN | 0 ETH | 0.00203612 | ||||
Withdraw | 19186083 | 204 days ago | IN | 0 ETH | 0.00500963 | ||||
Withdraw | 19186006 | 204 days ago | IN | 0 ETH | 0.00762989 | ||||
Claim Dividend | 18867067 | 249 days ago | IN | 0 ETH | 0.00050612 | ||||
Claim Dividend | 18519358 | 297 days ago | IN | 0 ETH | 0.00116148 | ||||
Multicall | 18439345 | 308 days ago | IN | 0 ETH | 0.00268779 | ||||
Claim Dividend | 18405391 | 313 days ago | IN | 0 ETH | 0.00027188 | ||||
Claim Dividend | 18405338 | 313 days ago | IN | 0 ETH | 0.0002831 | ||||
Claim Dividend | 18118821 | 353 days ago | IN | 0 ETH | 0.0004576 | ||||
Withdraw | 17883206 | 386 days ago | IN | 0 ETH | 0.00085066 | ||||
Deposit | 17872777 | 388 days ago | IN | 0 ETH | 0.0030046 | ||||
Deposit | 17872684 | 388 days ago | IN | 0 ETH | 0.00330199 | ||||
Deposit | 17745632 | 406 days ago | IN | 0 ETH | 0.00172228 | ||||
Withdraw | 17730392 | 408 days ago | IN | 0 ETH | 0.0014087 | ||||
Deposit | 17730389 | 408 days ago | IN | 0 ETH | 0.00199086 | ||||
Multicall | 17730385 | 408 days ago | IN | 0 ETH | 0.00454439 | ||||
Claim Dividend | 17730382 | 408 days ago | IN | 0 ETH | 0.00135418 | ||||
Deposit | 17499149 | 440 days ago | IN | 0 ETH | 0.00117935 | ||||
Withdraw | 17478791 | 443 days ago | IN | 0 ETH | 0.00136062 | ||||
Deposit | 17478629 | 443 days ago | IN | 0 ETH | 0.00146238 | ||||
Deposit | 17476277 | 443 days ago | IN | 0 ETH | 0.00145676 | ||||
Multicall | 17474099 | 444 days ago | IN | 0 ETH | 0.00269728 | ||||
Transfer | 17474095 | 444 days ago | IN | 0.02882874 ETH | 0.00033198 |
Latest 11 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20332192 | 43 days ago | 0.05385192 ETH | ||||
19189489 | 203 days ago | 0.04028078 ETH | ||||
18867067 | 249 days ago | 0.00853226 ETH | ||||
18519358 | 297 days ago | 0.00503887 ETH | ||||
18439345 | 308 days ago | 0.03496322 ETH | ||||
18405391 | 313 days ago | 0.00752766 ETH | ||||
18405338 | 313 days ago | 0.00862846 ETH | ||||
18118821 | 353 days ago | 0.01880709 ETH | ||||
17730385 | 408 days ago | 0.00014267 ETH | ||||
17730382 | 408 days ago | 0.00014267 ETH | ||||
17474099 | 444 days ago | 0.02882874 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
InternetMoneyBuyAndBurn
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "../BaseBuyAndBurn.sol"; contract InternetMoneyBuyAndBurn is BaseBuyAndBurn { constructor( address _producer, address _target, bool _targetCanBurn, address _burnDestination, address _router ) BaseBuyAndBurn( _producer, _target, _targetCanBurn, _burnDestination, _router ) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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. */ 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]. */ 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-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; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } 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)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } 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"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 * ==== * * [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 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.5.0) (utils/Multicall.sol) pragma solidity ^0.8.0; import "./Address.sol"; /** * @dev Provides a function to batch together multiple calls in a single external call. * * _Available since v4.1._ */ abstract contract Multicall { /** * @dev Receives and executes a batch of function calls on this contract. */ function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { results[i] = Address.functionDelegateCall(address(this), data[i]); } return results; } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/Multicall.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./interfaces/IERC20Burnable.sol"; import "./interfaces/IInternetMoneySwapRouter.sol"; import "./interfaces/IWETH.sol"; import "./interfaces/ITIMEDividend.sol"; import "./interfaces/IBuyAndBurn.sol"; import "./Utils.sol"; /** * @title BaseBuyAndBurn is a contract for custodying dividend producing tokens * claiming said dividends, swapping a wrapped native token, * and burning the remaining tokens */ contract BaseBuyAndBurn is Multicall, Utils, IBuyAndBurn { using SafeERC20 for IERC20; error NotAllowed(); /** the producer token, which produces dividends */ address public immutable producer; /** the token to purchase on market */ address public immutable target; /** the token has a burn method */ bool public immutable targetCanBurn; /** the destination for non burnable tokens */ address public immutable burnDestination; /** the router to swap through */ address public immutable router; /** * @notice the deposited amount from a given address */ mapping(address => uint256) public depositOf; /** * denotes that the deposited amount for a given account has been increased * @param account the account whos balance is being credited * @param amount the amount of the credit from depositing */ event Deposit(address account, uint256 amount); /** * denotes that the account has withdrawn a balance * @param account the account whos balance is being deducted * @param amount the amount to deduct from the credit held in the contract */ event Withdraw(address account, uint256 amount); constructor( address _producer, address _target, bool _targetCanBurn, address _burnDestination, address _router ) { producer = _producer; target = _target; targetCanBurn = _targetCanBurn; if (_targetCanBurn && _burnDestination != address(0)) { revert NotAllowed(); } router = _router; burnDestination = _burnDestination; } /** makes this contract payable */ receive() external payable {} /** * deposit producing tokens into this contract * @param amount the amount to deposit into this contract */ function deposit(uint256 amount) external { uint256 before = IERC20(producer).balanceOf(address(this)); IERC20(producer).safeTransferFrom(msg.sender, address(this), amount); uint256 delta = IERC20(producer).balanceOf(address(this)) - before; uint256 currentDeposit = depositOf[msg.sender]; depositOf[msg.sender] = currentDeposit + delta; emit Deposit(msg.sender, delta); } /** * withdraw a magnitude of dividend producing tokens to a provided destination * @param destination where to send tokens when they have been * @param amount the amount to withdraw against a debt */ function withdraw(address destination, uint256 amount) external { uint256 limit = depositOf[msg.sender]; amount = _clamp(amount, limit); unchecked { depositOf[msg.sender] = limit - amount; } destination = destination == address(0) ? msg.sender : destination; IERC20(producer).safeTransfer(destination, amount); emit Withdraw(msg.sender, amount); } /** * claim dividend from the producer contract * @param amount amount to pass to the claim dividend method on the producer contract * @notice the balance is returned to help make checks on client easier */ function claimDividend(uint256 amount) external returns(uint256) { ITIMEDividend(producer).claimDividend(payable(address(this)), amount); return address(this).balance; } /** * run a swap after converting outstanding native token to a wrapped token * @param minAmountOut the minimum amount to get out of a swap * @param deadline sets a deadline for the transaction to be invalid after * @notice anyone can set the min amount out, therefore * anyone can run this method with a 0 min amount out and sandwich the transaction */ function _buy(uint256 amountIn, uint256 minAmountOut, uint256 deadline) internal { address _router = router; address payable _wNative = IInternetMoneySwapRouter(_router).wNative(); uint256 wBalance = IWETH(_wNative).balanceOf(address(this)); if (wBalance > 0) { IWETH(_wNative).withdraw(wBalance); } address[] memory path = new address[](2); path[0] = _wNative; path[1] = target; uint256 balance = _clamp(amountIn, address(this).balance); uint256 fees = (balance * IInternetMoneySwapRouter(_router).fee()) / 100_000; IInternetMoneySwapRouter(_router).swapNativeToV2{ value: balance }( 0, address(this), path, balance - fees, minAmountOut, deadline ); } /** * purchases target token using the native currency * @param minAmountOut the minimum amount out expected * @param deadline when the trade should no longer be carried out * @notice passing 0 for deadline means that the buy will never expire */ function buy(uint256 amountIn, uint256 minAmountOut, uint256 deadline) external payable { _buy(amountIn, minAmountOut, _clamp(deadline, block.timestamp + 1)); } /** * burn the target token after it has been swapped * @notice this will allow any token sent to the contract to be burnt */ function burn() external { address _target = target; uint256 balance = IERC20(_target).balanceOf(address(this)); if (targetCanBurn) { IERC20Burnable(_target).burn(balance); } else { IERC20(_target).safeTransfer(burnDestination, balance); } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; interface IBuyAndBurn { function deposit(uint256 amount) external; function withdraw(address destination, uint256 amount) external; function claimDividend(uint256 amount) external returns(uint256); function buy(uint256 amountIn, uint256 minAmountOut, uint256 deadline) external payable; function burn() external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IERC20Burnable is IERC20 { function burn(uint256 amount) external; function burnFrom(address account, uint256 amount) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; interface IInternetMoneySwapRouter { function fee() external returns(uint256); function wNative() external returns(address payable); function distributeAll(uint256 amount) external; function distribute(uint256 amount) external; function swapTokenV2( uint256 _dexId, address recipient, address[] calldata _path, uint256 _amountIn, uint256 _minAmountOut, uint256 _deadline ) external payable; function swapNativeToV2( uint256 _dexId, address recipient, address[] calldata _path, uint256 _amountIn, uint256 _minAmountOut, uint256 _deadline ) external payable; function swapToNativeV2( uint256 _dexId, address payable recipient, address[] calldata _path, uint256 _amountIn, uint256 _minAmountOut, uint256 _deadline ) external payable; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; interface ITIMEDividend { function claimDividend( address payable recipient, uint256 amount ) external returns (uint256); function distributeAll( address internetMoneySwapRouter, uint256 amount ) external; }
// SPDX-License-Identifier: UNLICENSED // !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.6.6. SEE SOURCE BELOW. !! pragma solidity 0.8.17; interface IWETH { function name() external view returns (string memory); function approve(address guy, uint256 wad) external returns (bool); function totalSupply() external view returns (uint256); function transferFrom( address src, address dst, uint256 wad ) external returns (bool); function withdraw(uint256 wad) external; function decimals() external view returns (uint8); function balanceOf(address) external view returns (uint256); function symbol() external view returns (string memory); function transfer(address dst, uint256 wad) external returns (bool); function deposit() external payable; function allowance(address, address) external view returns (uint256); receive() external payable; event Approval(address indexed src, address indexed guy, uint256 wad); event Transfer(address indexed src, address indexed dst, uint256 wad); event Deposit(address indexed dst, uint256 wad); event Withdrawal(address indexed src, uint256 wad); } // THIS FILE WAS AUTOGENERATED FROM THE FOLLOWING ABI JSON: /* [{"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"guy","type":"address"},{"name":"wad","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"guy","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"}] */
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; abstract contract Utils { /** clamp the amount provided to a maximum, defaulting to provided maximum if 0 provided */ function clamp(uint256 amount, uint256 max) pure public returns(uint256) { return _clamp(amount, max); } function _clamp(uint256 amount, uint256 max) internal pure returns(uint256) { if (amount > max) { return max; } return amount == 0 ? max : amount; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_producer","type":"address"},{"internalType":"address","name":"_target","type":"address"},{"internalType":"bool","name":"_targetCanBurn","type":"bool"},{"internalType":"address","name":"_burnDestination","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimDividend","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"clamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"producer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"target","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"targetCanBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162001689380380620016898339810160408190526200003591620000cc565b6001600160a01b03808616608052841660a0528215801560c0528590859085908590859083906200006e57506001600160a01b03821615155b156200008d57604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b03908116610100521660e05250620001429650505050505050565b80516001600160a01b0381168114620000c757600080fd5b919050565b600080600080600060a08688031215620000e557600080fd5b620000f086620000af565b94506200010060208701620000af565b9350604086015180151581146200011657600080fd5b92506200012660608701620000af565b91506200013660808701620000af565b90509295509295909350565b60805160a05160c05160e051610100516114bd620001cc60003960008181610303015261091301526000818160f4015261048301526000818161022b01526103d901526000818161028f0152818161035d0152610adb015260008181610180015281816104e40152818161066f015281816106f10152818161073b015261088701526114bd6000f3fe6080604052600436106100d65760003560e01c8063ac9650d81161007f578063d4b8399211610059578063d4b839921461027d578063d63a4d5c146102b1578063f3fef3a3146102d1578063f887ea40146102f157600080fd5b8063ac9650d8146101ec578063b06adc0114610219578063b6b55f251461025d57600080fd5b806340993b26116100b057806340993b26146101a257806344df8e70146101b75780639abd3572146101cc57600080fd5b80630fca9687146100e257806323e3fbd514610133578063376126721461016e57600080fd5b366100dd57005b600080fd5b3480156100ee57600080fd5b506101167f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013f57600080fd5b5061016061014e366004611084565b60006020819052908152604090205481565b60405190815260200161012a565b34801561017a57600080fd5b506101167f000000000000000000000000000000000000000000000000000000000000000081565b6101b56101b03660046110a1565b610325565b005b3480156101c357600080fd5b506101b5610348565b3480156101d857600080fd5b506101606101e73660046110cd565b6104ac565b3480156101f857600080fd5b5061020c6102073660046110e6565b610561565b60405161012a91906111ab565b34801561022557600080fd5b5061024d7f000000000000000000000000000000000000000000000000000000000000000081565b604051901515815260200161012a565b34801561026957600080fd5b506101b56102783660046110cd565b610657565b34801561028957600080fd5b506101167f000000000000000000000000000000000000000000000000000000000000000081565b3480156102bd57600080fd5b506101606102cc36600461120d565b61081e565b3480156102dd57600080fd5b506101b56102ec36600461122f565b610831565b3480156102fd57600080fd5b506101167f000000000000000000000000000000000000000000000000000000000000000081565b610343838361033e84610339426001611271565b6108ec565b61090f565b505050565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156103b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d59190611284565b90507f000000000000000000000000000000000000000000000000000000000000000015610474576040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b15801561045857600080fd5b505af115801561046c573d6000803e3d6000fd5b505050505050565b6104a86001600160a01b0383167f000000000000000000000000000000000000000000000000000000000000000083610c39565b5050565b6040517f5247ab05000000000000000000000000000000000000000000000000000000008152306004820152602481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635247ab05906044016020604051808303816000875af1158015610535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105599190611284565b504792915050565b60608167ffffffffffffffff81111561057c5761057c61129d565b6040519080825280602002602001820160405280156105af57816020015b606081526020019060019003908161059a5790505b50905060005b8281101561064f5761061f308585848181106105d3576105d36112b3565b90506020028101906105e591906112c9565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ce292505050565b828281518110610631576106316112b3565b6020026020010181905250808061064790611317565b9150506105b5565b505b92915050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156106be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e29190611284565b90506107196001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610d07565b6040516370a0823160e01b815230600482015260009082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a69190611284565b6107b09190611330565b336000908152602081905260409020549091506107cd8282611271565b33600081815260208181526040918290209390935580519182529181018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a150505050565b600061082a83836108ec565b9392505050565b3360009081526020819052604090205461084b82826108ec565b336000908152602081905260409020818303905591506001600160a01b038316156108765782610878565b335b92506108ae6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484610c39565b60408051338152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a1505050565b6000818311156108fd575080610651565b8215610909578261082a565b50919050565b60007f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316632d68efc96040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a9190611343565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a089190611284565b90508015610a84576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b03831690632e1a7d4d90602401600060405180830381600087803b158015610a6b57600080fd5b505af1158015610a7f573d6000803e3d6000fd5b505050505b6040805160028082526060820183526000926020830190803683370190505090508281600081518110610ab957610ab96112b3565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610b0d57610b0d6112b3565b60200260200101906001600160a01b031690816001600160a01b0316815250506000610b3988476108ec565b90506000620186a0866001600160a01b031663ddca3f436040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba59190611284565b610baf9084611360565b610bb99190611377565b90506001600160a01b03861663fdf59b8e8360003087610bd98785611330565b8e8e6040518863ffffffff1660e01b8152600401610bfc96959493929190611399565b6000604051808303818588803b158015610c1557600080fd5b505af1158015610c29573d6000803e3d6000fd5b5050505050505050505050505050565b6040516001600160a01b0383166024820152604481018290526103439084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610d5e565b606061082a838360405180606001604052806027815260200161146160279139610e48565b6040516001600160a01b0380851660248301528316604482015260648101829052610d589085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c7e565b50505050565b6000610db3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec09092919063ffffffff16565b8051909150156103435780806020019051810190610dd1919061140f565b6103435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6060600080856001600160a01b031685604051610e659190611431565b600060405180830381855af49150503d8060008114610ea0576040519150601f19603f3d011682016040523d82523d6000602084013e610ea5565b606091505b5091509150610eb686838387610ed7565b9695505050505050565b6060610ecf8484600085610f50565b949350505050565b60608315610f46578251600003610f3f576001600160a01b0385163b610f3f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e3f565b5081610ecf565b610ecf8383611042565b606082471015610fc85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e3f565b600080866001600160a01b03168587604051610fe49190611431565b60006040518083038185875af1925050503d8060008114611021576040519150601f19603f3d011682016040523d82523d6000602084013e611026565b606091505b509150915061103787838387610ed7565b979650505050505050565b8151156110525781518083602001fd5b8060405162461bcd60e51b8152600401610e3f919061144d565b6001600160a01b038116811461108157600080fd5b50565b60006020828403121561109657600080fd5b813561082a8161106c565b6000806000606084860312156110b657600080fd5b505081359360208301359350604090920135919050565b6000602082840312156110df57600080fd5b5035919050565b600080602083850312156110f957600080fd5b823567ffffffffffffffff8082111561111157600080fd5b818501915085601f83011261112557600080fd5b81358181111561113457600080fd5b8660208260051b850101111561114957600080fd5b60209290920196919550909350505050565b60005b8381101561117657818101518382015260200161115e565b50506000910152565b6000815180845261119781602086016020860161115b565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561120057603f198886030184526111ee85835161117f565b945092850192908501906001016111d2565b5092979650505050505050565b6000806040838503121561122057600080fd5b50508035926020909101359150565b6000806040838503121561124257600080fd5b823561124d8161106c565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106515761065161125b565b60006020828403121561129657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126112e057600080fd5b83018035915067ffffffffffffffff8211156112fb57600080fd5b60200191503681900382131561131057600080fd5b9250929050565b6000600182016113295761132961125b565b5060010190565b818103818111156106515761065161125b565b60006020828403121561135557600080fd5b815161082a8161106c565b80820281158282048414176106515761065161125b565b60008261139457634e487b7160e01b600052601260045260246000fd5b500490565b600060c0820188835260206001600160a01b03808a168286015260c0604086015282895180855260e087019150838b01945060005b818110156113ec5785518416835294840194918401916001016113ce565b5050606086019890985250505050608081019290925260a0909101529392505050565b60006020828403121561142157600080fd5b8151801515811461082a57600080fd5b6000825161144381846020870161115b565b9190910192915050565b60208152600061082a602083018461117f56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206e07c6fabf16d81b97c2cecafbec865bea6c21d3091bc4eb4bd60befadc4703364736f6c63430008110033000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca93600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000893d8a59632629747a73df131ecc38d1a28724b3
Deployed Bytecode
0x6080604052600436106100d65760003560e01c8063ac9650d81161007f578063d4b8399211610059578063d4b839921461027d578063d63a4d5c146102b1578063f3fef3a3146102d1578063f887ea40146102f157600080fd5b8063ac9650d8146101ec578063b06adc0114610219578063b6b55f251461025d57600080fd5b806340993b26116100b057806340993b26146101a257806344df8e70146101b75780639abd3572146101cc57600080fd5b80630fca9687146100e257806323e3fbd514610133578063376126721461016e57600080fd5b366100dd57005b600080fd5b3480156100ee57600080fd5b506101167f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013f57600080fd5b5061016061014e366004611084565b60006020819052908152604090205481565b60405190815260200161012a565b34801561017a57600080fd5b506101167f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac81565b6101b56101b03660046110a1565b610325565b005b3480156101c357600080fd5b506101b5610348565b3480156101d857600080fd5b506101606101e73660046110cd565b6104ac565b3480156101f857600080fd5b5061020c6102073660046110e6565b610561565b60405161012a91906111ab565b34801561022557600080fd5b5061024d7f000000000000000000000000000000000000000000000000000000000000000181565b604051901515815260200161012a565b34801561026957600080fd5b506101b56102783660046110cd565b610657565b34801561028957600080fd5b506101167f0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca93681565b3480156102bd57600080fd5b506101606102cc36600461120d565b61081e565b3480156102dd57600080fd5b506101b56102ec36600461122f565b610831565b3480156102fd57600080fd5b506101167f000000000000000000000000893d8a59632629747a73df131ecc38d1a28724b381565b610343838361033e84610339426001611271565b6108ec565b61090f565b505050565b6040516370a0823160e01b81523060048201527f0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca936906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156103b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d59190611284565b90507f000000000000000000000000000000000000000000000000000000000000000115610474576040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b15801561045857600080fd5b505af115801561046c573d6000803e3d6000fd5b505050505050565b6104a86001600160a01b0383167f000000000000000000000000000000000000000000000000000000000000000083610c39565b5050565b6040517f5247ab05000000000000000000000000000000000000000000000000000000008152306004820152602481018290526000907f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac6001600160a01b031690635247ab05906044016020604051808303816000875af1158015610535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105599190611284565b504792915050565b60608167ffffffffffffffff81111561057c5761057c61129d565b6040519080825280602002602001820160405280156105af57816020015b606081526020019060019003908161059a5790505b50905060005b8281101561064f5761061f308585848181106105d3576105d36112b3565b90506020028101906105e591906112c9565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ce292505050565b828281518110610631576106316112b3565b6020026020010181905250808061064790611317565b9150506105b5565b505b92915050565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac6001600160a01b0316906370a0823190602401602060405180830381865afa1580156106be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e29190611284565b90506107196001600160a01b037f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac16333085610d07565b6040516370a0823160e01b815230600482015260009082906001600160a01b037f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac16906370a0823190602401602060405180830381865afa158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a69190611284565b6107b09190611330565b336000908152602081905260409020549091506107cd8282611271565b33600081815260208181526040918290209390935580519182529181018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a150505050565b600061082a83836108ec565b9392505050565b3360009081526020819052604090205461084b82826108ec565b336000908152602081905260409020818303905591506001600160a01b038316156108765782610878565b335b92506108ae6001600160a01b037f000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac168484610c39565b60408051338152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a1505050565b6000818311156108fd575080610651565b8215610909578261082a565b50919050565b60007f000000000000000000000000893d8a59632629747a73df131ecc38d1a28724b390506000816001600160a01b0316632d68efc96040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a9190611343565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a089190611284565b90508015610a84576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b03831690632e1a7d4d90602401600060405180830381600087803b158015610a6b57600080fd5b505af1158015610a7f573d6000803e3d6000fd5b505050505b6040805160028082526060820183526000926020830190803683370190505090508281600081518110610ab957610ab96112b3565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca93681600181518110610b0d57610b0d6112b3565b60200260200101906001600160a01b031690816001600160a01b0316815250506000610b3988476108ec565b90506000620186a0866001600160a01b031663ddca3f436040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba59190611284565b610baf9084611360565b610bb99190611377565b90506001600160a01b03861663fdf59b8e8360003087610bd98785611330565b8e8e6040518863ffffffff1660e01b8152600401610bfc96959493929190611399565b6000604051808303818588803b158015610c1557600080fd5b505af1158015610c29573d6000803e3d6000fd5b5050505050505050505050505050565b6040516001600160a01b0383166024820152604481018290526103439084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610d5e565b606061082a838360405180606001604052806027815260200161146160279139610e48565b6040516001600160a01b0380851660248301528316604482015260648101829052610d589085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c7e565b50505050565b6000610db3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec09092919063ffffffff16565b8051909150156103435780806020019051810190610dd1919061140f565b6103435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6060600080856001600160a01b031685604051610e659190611431565b600060405180830381855af49150503d8060008114610ea0576040519150601f19603f3d011682016040523d82523d6000602084013e610ea5565b606091505b5091509150610eb686838387610ed7565b9695505050505050565b6060610ecf8484600085610f50565b949350505050565b60608315610f46578251600003610f3f576001600160a01b0385163b610f3f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e3f565b5081610ecf565b610ecf8383611042565b606082471015610fc85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e3f565b600080866001600160a01b03168587604051610fe49190611431565b60006040518083038185875af1925050503d8060008114611021576040519150601f19603f3d011682016040523d82523d6000602084013e611026565b606091505b509150915061103787838387610ed7565b979650505050505050565b8151156110525781518083602001fd5b8060405162461bcd60e51b8152600401610e3f919061144d565b6001600160a01b038116811461108157600080fd5b50565b60006020828403121561109657600080fd5b813561082a8161106c565b6000806000606084860312156110b657600080fd5b505081359360208301359350604090920135919050565b6000602082840312156110df57600080fd5b5035919050565b600080602083850312156110f957600080fd5b823567ffffffffffffffff8082111561111157600080fd5b818501915085601f83011261112557600080fd5b81358181111561113457600080fd5b8660208260051b850101111561114957600080fd5b60209290920196919550909350505050565b60005b8381101561117657818101518382015260200161115e565b50506000910152565b6000815180845261119781602086016020860161115b565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561120057603f198886030184526111ee85835161117f565b945092850192908501906001016111d2565b5092979650505050505050565b6000806040838503121561122057600080fd5b50508035926020909101359150565b6000806040838503121561124257600080fd5b823561124d8161106c565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106515761065161125b565b60006020828403121561129657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126112e057600080fd5b83018035915067ffffffffffffffff8211156112fb57600080fd5b60200191503681900382131561131057600080fd5b9250929050565b6000600182016113295761132961125b565b5060010190565b818103818111156106515761065161125b565b60006020828403121561135557600080fd5b815161082a8161106c565b80820281158282048414176106515761065161125b565b60008261139457634e487b7160e01b600052601260045260246000fd5b500490565b600060c0820188835260206001600160a01b03808a168286015260c0604086015282895180855260e087019150838b01945060005b818110156113ec5785518416835294840194918401916001016113ce565b5050606086019890985250505050608081019290925260a0909101529392505050565b60006020828403121561142157600080fd5b8151801515811461082a57600080fd5b6000825161144381846020870161115b565b9190910192915050565b60208152600061082a602083018461117f56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206e07c6fabf16d81b97c2cecafbec865bea6c21d3091bc4eb4bd60befadc4703364736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca93600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000893d8a59632629747a73df131ecc38d1a28724b3
-----Decoded View---------------
Arg [0] : _producer (address): 0xd08481058399490B83a72676901d4e9dB70E75aC
Arg [1] : _target (address): 0x0A58153a0CD1cfaea94cE1f7FdC5D7E679eCa936
Arg [2] : _targetCanBurn (bool): True
Arg [3] : _burnDestination (address): 0x0000000000000000000000000000000000000000
Arg [4] : _router (address): 0x893d8a59632629747A73df131ecc38D1a28724B3
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000d08481058399490b83a72676901d4e9db70e75ac
Arg [1] : 0000000000000000000000000a58153a0cd1cfaea94ce1f7fdc5d7e679eca936
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000893d8a59632629747a73df131ecc38d1a28724b3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.