More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 234 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap ETH For Tok... | 20230346 | 287 days ago | IN | 0.00243355 ETH | 0.00211242 | ||||
Swap ETH For Tok... | 20146565 | 299 days ago | IN | 0.00684599 ETH | 0.0011421 | ||||
Swap ETH For Tok... | 20057319 | 311 days ago | IN | 0.05443186 ETH | 0.0022734 | ||||
Swap ETH For Tok... | 19944062 | 327 days ago | IN | 0.8405867 ETH | 0.00174875 | ||||
Swap ETH For Tok... | 19939736 | 328 days ago | IN | 0.01057054 ETH | 0.00332647 | ||||
Swap ETH For Tok... | 19939370 | 328 days ago | IN | 0.02857882 ETH | 0.00303788 | ||||
Swap ETH For Tok... | 19936513 | 328 days ago | IN | 0.11164286 ETH | 0.00289354 | ||||
Swap ETH For Tok... | 19930920 | 329 days ago | IN | 0.01057984 ETH | 0.00295725 | ||||
Swap ETH For Tok... | 19907330 | 332 days ago | IN | 0.00979911 ETH | 0.00170315 | ||||
Swap ETH For Tok... | 19905904 | 332 days ago | IN | 0.00590277 ETH | 0.00116463 | ||||
Direct Deposit | 19878581 | 336 days ago | IN | 0.00091658 ETH | 0.00098791 | ||||
Swap ETH For Tok... | 19871521 | 337 days ago | IN | 0.21093385 ETH | 0.001896 | ||||
Swap ETH For Tok... | 19870958 | 337 days ago | IN | 0.00592976 ETH | 0.00233665 | ||||
Swap ETH For Tok... | 19864612 | 338 days ago | IN | 0.04088676 ETH | 0.00191184 | ||||
Swap ETH For Tok... | 19863825 | 338 days ago | IN | 0.11090508 ETH | 0.00205906 | ||||
Swap ETH For Tok... | 19842958 | 341 days ago | IN | 0.15103598 ETH | 0.00212828 | ||||
Swap ETH For Tok... | 19837433 | 342 days ago | IN | 0.01402889 ETH | 0.00204665 | ||||
Direct Deposit | 19832171 | 343 days ago | IN | 0.00102888 ETH | 0.00097572 | ||||
Swap ETH For Tok... | 19825005 | 344 days ago | IN | 0.00602153 ETH | 0.00148341 | ||||
Swap ETH For Tok... | 19799102 | 347 days ago | IN | 0.0040555 ETH | 0.00210068 | ||||
Swap ETH For Tok... | 19796962 | 347 days ago | IN | 0.01004875 ETH | 0.00270703 | ||||
Swap ETH For Tok... | 19795988 | 348 days ago | IN | 0.06105777 ETH | 0.00207596 | ||||
Swap ETH For Tok... | 19792200 | 348 days ago | IN | 1.0510523 ETH | 0.00234093 | ||||
Direct Deposit | 19788154 | 349 days ago | IN | 0.00106753 ETH | 0.00178535 | ||||
Swap ETH For Tok... | 19782004 | 350 days ago | IN | 0.0110519 ETH | 0.00268458 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Deposit | 20230346 | 287 days ago | 0.00043355 ETH | ||||
0x93849c8f | 20230346 | 287 days ago | 0.002 ETH | ||||
Deposit | 20146565 | 299 days ago | 0.00044599 ETH | ||||
0x93849c8f | 20146565 | 299 days ago | 0.0064 ETH | ||||
Deposit | 20057319 | 311 days ago | 0.00043186 ETH | ||||
0x93849c8f | 20057319 | 311 days ago | 0.054 ETH | ||||
Deposit | 19944062 | 327 days ago | 0.0005867 ETH | ||||
0x93849c8f | 19944062 | 327 days ago | 0.84 ETH | ||||
Deposit | 19939736 | 328 days ago | 0.00057054 ETH | ||||
0x93849c8f | 19939736 | 328 days ago | 0.01 ETH | ||||
Deposit | 19939370 | 328 days ago | 0.00057882 ETH | ||||
0x93849c8f | 19939370 | 328 days ago | 0.028 ETH | ||||
Deposit | 19936513 | 328 days ago | 0.00054286 ETH | ||||
0x93849c8f | 19936513 | 328 days ago | 0.1111 ETH | ||||
Deposit | 19930920 | 329 days ago | 0.00057984 ETH | ||||
0x93849c8f | 19930920 | 329 days ago | 0.01 ETH | ||||
Deposit | 19907330 | 332 days ago | 0.00089911 ETH | ||||
0x93849c8f | 19907330 | 332 days ago | 0.0089 ETH | ||||
Deposit | 19905904 | 332 days ago | 0.00090277 ETH | ||||
0x93849c8f | 19905904 | 332 days ago | 0.005 ETH | ||||
Deposit | 19878581 | 336 days ago | 0.00091658 ETH | ||||
Deposit | 19871521 | 337 days ago | 0.00093385 ETH | ||||
0x93849c8f | 19871521 | 337 days ago | 0.21 ETH | ||||
Deposit | 19870958 | 337 days ago | 0.00092976 ETH | ||||
0x93849c8f | 19870958 | 337 days ago | 0.005 ETH |
Loading...
Loading
Contract Name:
VenomGetV3
Compiler Version
v0.8.18+commit.87f61d96
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.18; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./IDexTaxV3.sol"; import "./IEverscale.sol"; import "./IMultiVault.sol"; /// Data for swap ERC20 to ERC20 or ETH, and swap ETH to ERC20 /// @param swapData Data object for swap calls /// @param signature SwapData object in EIP712 format, signed by the backend struct DataSwap { IDexTaxV3.SwapData swapData; bytes signature; } /// Data for deposit /// @param recipient address in Venom who receive for bridging /// @param token ERC20 address token which depositing /// @param amount amount of ERC20 token to deposit /// @param expected_evers amount of Venom tokens will be expect /// @param payload data for swaping in Venom network struct DepositData { IEverscale.EverscaleAddress recipient; address token; uint256 amount; uint256 expected_evers; bytes payload; } /// @title Contract for swap and depositing to Venom contract VenomGetV3 is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; using Address for address payable; receive() external payable {} struct EverscaleAddress { int8 wid; uint256 addr; } /// DexTaxV3 contract address for swap address public dexTax; /// MultiVault contract address for bridging to Venom address public multiVault; // Events /// Withdraw ETH event event WithdrawETH(address recipient, uint256 amount); /// Withdraw ERC20 event event WithdrawERC20(IERC20 token, address recipient, uint256 amount); /// Set DexTax address event SetDexTax(address dexTax); /// Set Multi Vault address event SetMultivault(address multiVault); constructor(address _dexTax, address _multiVault) { dexTax = _dexTax; multiVault = _multiVault; } /// Transfer ETH held by this contrat to the sender/owner /// @param amount How many ETH to transfer function withdrawETH(uint256 amount) external onlyOwner { payable(msg.sender).sendValue(amount); emit WithdrawETH(msg.sender, amount); } /// Transfer ERC20 held by this contrat to the sender/owner /// @param amount How many ERC20 to transfer function withdrawERC20(IERC20 token, uint256 amount) external onlyOwner { token.safeTransfer(msg.sender, amount); emit WithdrawERC20(token, msg.sender, amount); } /// Set DexTaxV3 address /// @param _dexTax New address for swap function setDexTax(address _dexTax) public onlyOwner { dexTax = _dexTax; emit SetDexTax(_dexTax); } /// Set MultiVault address /// @param _multiVault New address for bridging function setMultiVault(address _multiVault) public onlyOwner { multiVault = _multiVault; emit SetMultivault(_multiVault); } // Swap ERC20 token to ERC20 token then deposit /// @param dataSwap swap params for DexTaxV3 /// @param depositData params for depositing function swapTokensForTokens( DataSwap calldata dataSwap, IMultiVault.DepositData memory depositData ) external payable nonReentrant { uint256 contractBalanceBefore = address(this).balance - msg.value; uint256 sellTokenBalanceBefore = dataSwap.swapData.sellToken.balanceOf( address(this) ); dataSwap.swapData.sellToken.safeTransferFrom( msg.sender, address(this), dataSwap.swapData.amountIn ); approve( dataSwap.swapData.sellToken, dexTax, dataSwap.swapData.amountIn ); IDexTaxV3(dexTax).swapTokensForTokens( dataSwap.swapData, dataSwap.signature ); uint256 depositValue = address(this).balance - contractBalanceBefore; deposit(depositData, depositValue); uint256 remainderOfToken = dataSwap.swapData.sellToken.balanceOf( address(this) ) - sellTokenBalanceBefore; if (remainderOfToken > 0) { dataSwap.swapData.sellToken.safeTransfer( msg.sender, remainderOfToken ); } } // Swap ETH token to ERC20 token then deposit /// @param dataSwap swap params for DexTaxV3 /// @param depositData params for depositing /// @param depositValue value for deposit function swapETHForTokens( DataSwap calldata dataSwap, IMultiVault.DepositData memory depositData, uint256 depositValue ) external payable nonReentrant { uint256 contractBalanceBefore = address(this).balance - msg.value; IDexTaxV3(dexTax).swapETHForTokens{value: dataSwap.swapData.amountIn}( dataSwap.swapData, dataSwap.signature ); deposit(depositData, depositValue); uint256 remainderOfToken = address(this).balance - contractBalanceBefore; if (remainderOfToken > 0) { payable(msg.sender).sendValue(remainderOfToken); } } // Swap ERC20 token to ETH token then deposit /// @param dataSwap swap params for DexTaxV3 /// @param depositData params for depositing function swapTokensForETH( DataSwap calldata dataSwap, IMultiVault.DepositByNativeTokenData memory depositData ) external payable nonReentrant { uint256 contractBalanceBefore = address(this).balance - msg.value; uint256 sellTokenBalanceBefore = dataSwap.swapData.sellToken.balanceOf( address(this) ); dataSwap.swapData.sellToken.safeTransferFrom( msg.sender, address(this), dataSwap.swapData.amountIn ); approve( dataSwap.swapData.sellToken, dexTax, dataSwap.swapData.amountIn ); IDexTaxV3(dexTax).swapTokensForETH( dataSwap.swapData, dataSwap.signature ); uint256 depositValue = address(this).balance - contractBalanceBefore; depositNative(depositData, depositValue); uint256 remainderOfToken = dataSwap.swapData.sellToken.balanceOf( address(this) ) - sellTokenBalanceBefore; if (remainderOfToken > 0) { dataSwap.swapData.sellToken.safeTransfer( msg.sender, remainderOfToken ); } } // Direct depositing ERC20 token /// @param data params for depositing /// @param amount amount of depositing token function directDeposit( IMultiVault.DepositData memory data, uint256 amount ) external payable nonReentrant { IERC20(data.token).safeTransferFrom(msg.sender, address(this), amount); approve(IERC20(data.token), dexTax, amount); IDexTaxV3(dexTax).collectBeneficiaryFee( IERC20(data.token), amount, address(this) ); approve(IERC20(data.token), multiVault, data.amount); IMultiVault(multiVault).deposit{value: msg.value}(data); } // Direct depositing ETH token /// @param data params for depositing function directDepositNative( IMultiVault.DepositByNativeTokenData memory data ) external payable nonReentrant { IDexTaxV3(dexTax).collectBeneficiaryFeeETH{value: msg.value}( payable(this) ); depositNative(data, data.amount); } // Give the allowance /// @param token ERC20 token /// @param spender spender address /// @param amount amount to approve function approve(IERC20 token, address spender, uint amount) internal { uint256 allowed = token.allowance(address(this), spender); if (allowed < amount) { token.safeApprove(spender, 0); token.safeApprove(spender, amount); } } // Depositing ERC20 token /// @param data params for depositing /// @param depositValue amount of ETH token for deposit function deposit( IMultiVault.DepositData memory data, uint256 depositValue ) internal { uint256 amount = IERC20(data.token).balanceOf(address(this)); approve(IERC20(data.token), multiVault, amount); IMultiVault(multiVault).deposit{value: depositValue}(data); } // Depositing ETH token /// @param data params for depositing /// @param depositValue amount of ETH token for deposit function depositNative( IMultiVault.DepositByNativeTokenData memory data, uint256 depositValue ) internal { IMultiVault(multiVault).depositByNativeToken{value: depositValue}(data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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; } }
// 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.18; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IDexTaxV3 { struct SwapData { IERC20 sellToken; IERC20 buyToken; address payable swapTarget; address spender; bytes swapCallData; uint256 amountIn; } function swapTokensForTokens( SwapData calldata swapData, bytes calldata signature ) external; function swapETHForTokens( SwapData calldata swapData, bytes calldata signature ) external payable; function swapTokensForETH( SwapData calldata swapData, bytes calldata signature ) external; function collectBeneficiaryFee( IERC20 token, uint256 amount, address receiver ) external; function collectBeneficiaryFeeETH( address payable receiver ) external payable; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.8.18; interface IEverscale { struct EverscaleAddress { int8 wid; uint256 addr; } struct EverscaleEvent { uint64 eventTransactionLt; uint32 eventTimestamp; bytes eventData; int8 configurationWid; uint256 configurationAddress; int8 eventContractWid; uint256 eventContractAddress; address proxy; uint32 round; } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.8.18; import "./IEverscale.sol"; interface IMultiVault is IEverscale { struct DepositData { IEverscale.EverscaleAddress recipient; address token; uint256 amount; uint256 expected_evers; bytes payload; } struct DepositByNativeTokenData { IEverscale.EverscaleAddress recipient; uint256 amount; uint256 expected_evers; bytes payload; } function deposit(DepositData memory data) external payable; function depositByNativeToken( DepositByNativeTokenData memory data ) external payable; }
{ "viaIR": true, "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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_dexTax","type":"address"},{"internalType":"address","name":"_multiVault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"dexTax","type":"address"}],"name":"SetDexTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"multiVault","type":"address"}],"name":"SetMultivault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"inputs":[],"name":"dexTax","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"int8","name":"wid","type":"int8"},{"internalType":"uint256","name":"addr","type":"uint256"}],"internalType":"struct IEverscale.EverscaleAddress","name":"recipient","type":"tuple"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expected_evers","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct IMultiVault.DepositData","name":"data","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"directDeposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"int8","name":"wid","type":"int8"},{"internalType":"uint256","name":"addr","type":"uint256"}],"internalType":"struct IEverscale.EverscaleAddress","name":"recipient","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expected_evers","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct IMultiVault.DepositByNativeTokenData","name":"data","type":"tuple"}],"name":"directDepositNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"multiVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dexTax","type":"address"}],"name":"setDexTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_multiVault","type":"address"}],"name":"setMultiVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"contract IERC20","name":"sellToken","type":"address"},{"internalType":"contract IERC20","name":"buyToken","type":"address"},{"internalType":"address payable","name":"swapTarget","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"bytes","name":"swapCallData","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"internalType":"struct IDexTaxV3.SwapData","name":"swapData","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct DataSwap","name":"dataSwap","type":"tuple"},{"components":[{"components":[{"internalType":"int8","name":"wid","type":"int8"},{"internalType":"uint256","name":"addr","type":"uint256"}],"internalType":"struct IEverscale.EverscaleAddress","name":"recipient","type":"tuple"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expected_evers","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct IMultiVault.DepositData","name":"depositData","type":"tuple"},{"internalType":"uint256","name":"depositValue","type":"uint256"}],"name":"swapETHForTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"contract IERC20","name":"sellToken","type":"address"},{"internalType":"contract IERC20","name":"buyToken","type":"address"},{"internalType":"address payable","name":"swapTarget","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"bytes","name":"swapCallData","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"internalType":"struct IDexTaxV3.SwapData","name":"swapData","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct DataSwap","name":"dataSwap","type":"tuple"},{"components":[{"components":[{"internalType":"int8","name":"wid","type":"int8"},{"internalType":"uint256","name":"addr","type":"uint256"}],"internalType":"struct IEverscale.EverscaleAddress","name":"recipient","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expected_evers","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct IMultiVault.DepositByNativeTokenData","name":"depositData","type":"tuple"}],"name":"swapTokensForETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"contract IERC20","name":"sellToken","type":"address"},{"internalType":"contract IERC20","name":"buyToken","type":"address"},{"internalType":"address payable","name":"swapTarget","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"bytes","name":"swapCallData","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"internalType":"struct IDexTaxV3.SwapData","name":"swapData","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct DataSwap","name":"dataSwap","type":"tuple"},{"components":[{"components":[{"internalType":"int8","name":"wid","type":"int8"},{"internalType":"uint256","name":"addr","type":"uint256"}],"internalType":"struct IEverscale.EverscaleAddress","name":"recipient","type":"tuple"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expected_evers","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct IMultiVault.DepositData","name":"depositData","type":"tuple"}],"name":"swapTokensForTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080346100c757601f61190a38819003918201601f19168301916001600160401b038311848410176100cc5780849260409485528339810103126100c757610052602061004b836100e2565b92016100e2565b60008054336001600160a01b0319808316821784556040519590946001600160a01b03949093859391908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a360018055168360025416176002551690600354161760035561181390816100f78239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036100c75756fe60406080815260049081361015610020575b5050361561001e57600080fd5b005b600091823560e01c80631252b63414610abb5780632f35cdab14610922578381633d4564591461086a57508063400cbb89146105de578063715018a6146105775780638c3ecc451461054f5780638da5cb5b14610529578063a1db9782146104b857838163a930684b1461033b57508063cbca0b1714610313578063de7803d51461029b578063ed50d91c1461021f578063f14210a6146101b75763f2fde38b146100cb5750610011565b346101b35760203660031901126101b3576100e4610c86565b906100ed610df9565b6001600160a01b0380921692831561014a5750506000548273ffffffffffffffffffffffffffffffffffffffff19821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50346101b35760203660031901126101b3577f566e45b1c8057e725bf62796a7f1d37ae294393cab069725a09daddd1af98b79916102199135906101f9610df9565b6102038233610e81565b5133815260208101919091529081906040820190565b0390a180f35b5050346102975760203660031901126102975760207f8afee0baa440e5327af06cb8c3dd98c2cc7212152e50df3413be20b59b54eccb916001600160a01b03610266610c86565b61026e610df9565b16908173ffffffffffffffffffffffffffffffffffffffff19600354161760035551908152a180f35b5080fd5b5050346102975760203660031901126102975760207f1c50ecfa6f7a18b9830ee86a101a5ebbbb7654795412ab7e51a1dbe4b1fd44df916001600160a01b036102e2610c86565b6102ea610df9565b16908173ffffffffffffffffffffffffffffffffffffffff19600254161760025551908152a180f35b5050346102975781600319360112610297576020906001600160a01b03600254169051908152f35b928091506003193601126104b457813567ffffffffffffffff81116104af576103679036908401610d13565b91602435610373611307565b602084016001600160a01b039161039181848451163090339061135c565b6103a48184845116856002541690611428565b8260025416908383511690823b156104ab576064899283895195869485937fd3629d900000000000000000000000000000000000000000000000000000000085528b85015260248401523060448401525af180156104a15783918891610486575b505061041c91511682600354168587015191611428565b6003541692833b156104825761044793859284518096819482936322a8c22760e01b845283016113cb565b039134905af19081156104795750610462575b506001805580f35b61046b90610bf6565b61047657803861045a565b80fd5b513d84823e3d90fd5b8480fd5b610491919250610bf6565b61049d57818638610405565b8580fd5b85513d89823e3d90fd5b8880fd5b505050fd5b5050fd5b50503461029757806003193601126102975760607f33c35f9541201e342d5e7467016e65a0a06182eb12a5f17103f71cec95b6cb29916104f6610c86565b9060243590610503610df9565b61050e823385610f58565b6001600160a01b03815193168352336020840152820152a180f35b5050346102975781600319360112610297576001600160a01b0360209254169051908152f35b5050346102975781600319360112610297576020906001600160a01b03600354169051908152f35b8334610476578060031936011261047657610590610df9565b60006001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b508260031992808436011261029757823567ffffffffffffffff808211610866578282860196833603011261086657602435908111610866576106249036908601610d91565b9361062d611307565b61063734476111a8565b906001600160a01b038061065361064e8a806111cb565b6111e0565b169685519687956370a0823160e01b998a885230868901528760246020998a935afa98891561082857908b91839a610832575b506106af61069761064e84806111cb565b60a06106a385806111cb565b0135903090339061135c565b6106d86106bf61064e84806111cb565b866002541660a06106d086806111cb565b013591611428565b6106f460246106ec876002541694806111cb565b92018d6111f4565b92803b1561048257849283896107368e51978896879586947f73da48dc0000000000000000000000000000000000000000000000000000000086528501611248565b03925af180156108285790879594939291610809575b5050610766906107606024949596476111a8565b9061174a565b61077361064e8a806111cb565b169685519788938492835230908301525afa918215610800575085916107cb575b5061079f92506111a8565b806107ad575b826001805580f35b6107c4916107bf61064e3392806111cb565b610f58565b38806107a5565b905082813d83116107f9575b6107e18183610c20565b810103126107f45761079f915138610794565b600080fd5b503d6107d7565b513d87823e3d90fd5b6108169192949550610bf6565b610824578492918a3861074c565b8980fd5b88513d84823e3d90fd5b92509850508581813d831161085f575b61084c8183610c20565b810103126107f457898b91519838610686565b503d610842565b8380fd5b919050602036600319011261029757803567ffffffffffffffff81116101b3576108979036908301610d91565b926108a0611307565b6001600160a01b036002541691823b1561086657839060248351809581937f48dd40d9000000000000000000000000000000000000000000000000000000008352309083015234905af1908115610479575061090e575b506109078260208101519061174a565b6001805580f35b61091790610bf6565b6102975781386108f7565b508260031992808436011261029757823567ffffffffffffffff808211610866578282860196833603011261086657602435908111610866576109689036908601610d13565b93610971611307565b61097b34476111a8565b906001600160a01b038061099261064e8a806111cb565b169685519687956370a0823160e01b998a885230868901528760246020998a935afa98891561082857908b91839a610a87575b506109d661069761064e84806111cb565b6109e66106bf61064e84806111cb565b6109fa60246106ec876002541694806111cb565b92803b156104825784928389610a3c8e51978896879586947f69bd34a60000000000000000000000000000000000000000000000000000000086528501611248565b03925af180156108285790879594939291610a6c575b505061076690610a666024949596476111a8565b9061166e565b610a799192949550610bf6565b610824578492918a38610a52565b92509850508581813d8311610ab4575b610aa18183610c20565b810103126107f457898b915198386109c5565b503d610a97565b5091906003196060368201126101b35783359167ffffffffffffffff80841161048257818487019385360301126104825760243590811161048257610b039036908701610d13565b94610b0c611307565b610b1634476111a8565b936001600160a01b036002541690610b4a60a0610b3387806111cb565b0135956024610b4282806111cb565b9301906111f4565b959093833b156104ab57908894939291610b908751988996879586947f93849c8f0000000000000000000000000000000000000000000000000000000086528501611248565b03925af1908115610bed5750610bd6575b50610bb3610bb992936044359061166e565b476111a8565b80610bc657506001805580f35b610bd09033610e81565b3861045a565b610bb992610be6610bb392610bf6565b9250610ba1565b513d85823e3d90fd5b67ffffffffffffffff8111610c0a57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c0a57604052565b91908260409103126107f4576040516040810181811067ffffffffffffffff821117610c0a57604052809280358060000b81036107f4578252602090810135910152565b600435906001600160a01b03821682036107f457565b35906001600160a01b03821682036107f457565b67ffffffffffffffff8111610c0a57601f01601f191660200190565b81601f820112156107f457803590610ce382610cb0565b92610cf16040519485610c20565b828452602083830101116107f457816000926020809301838601378301015290565b91909160c0818403126107f4576040519067ffffffffffffffff9060a0830182811184821017610c0a576040528294610d4c8183610c42565b8452610d5a60408301610c9c565b6020850152606082013560408501526080820135606085015260a08201359283116107f457608092610d8c9201610ccc565b910152565b91909160a0818403126107f4576040519067ffffffffffffffff906080830182811184821017610c0a576040528294610dca8183610c42565b8452604082013560208501526060820135604085015260808201359283116107f457606092610d8c9201610ccc565b6001600160a01b03600054163303610e0d57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d15610e7c573d90610e6282610cb0565b91610e706040519384610c20565b82523d6000602084013e565b606090565b814710610f145760008080936001600160a01b038294165af1610ea2610e51565b5015610eaa57565b608460405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b0390921660248301526044820192909252610fb991610fb482606481015b03601f198101845283610c20565b610fbb565b565b6001600160a01b031690604051604081019080821067ffffffffffffffff831117610c0a5761102e916040526020938482527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858301526000808587829751910182855af1611028610e51565b916110cc565b80518061103c575b50505050565b818491810103126102975782015190811591821503610476575061106257808080611036565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b9192901561112d57508151156110e0575090565b3b156110e95790565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156111405750805190602001fd5b6111649060405191829162461bcd60e51b8352602060048401526024830190611168565b0390fd5b919082519283825260005b848110611194575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611173565b919082039182116111b557565b634e487b7160e01b600052601160045260246000fd5b90359060be19813603018212156107f4570190565b356001600160a01b03811681036107f45790565b903590601e19813603018212156107f4570180359067ffffffffffffffff82116107f4576020019181360383136107f457565b908060209392818452848401376000828201840152601f01601f1916010190565b929091604084526001600160a01b038061126185610c9c565b1660408601528061127460208601610c9c565b16606086015260408401358181168091036107f457608086015261129a60608501610c9c565b1660a08501526080830135601e19843603018112156107f45783019360208535950167ffffffffffffffff86116107f45785360381136107f4576112ef60a0916113049760c080860152610100850191611227565b94013560e08201526020818503910152611227565b90565b600260015414611318576002600155565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9290604051927f23b872dd0000000000000000000000000000000000000000000000000000000060208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117610c0a57610fb992604052610fbb565b60e0608061130493602084526113f260208501825160208091805160000b84520151910152565b6001600160a01b036020820151166060850152604081015182850152606081015160a085015201519160c0808201520190611168565b604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008082523060048301526001600160a01b038581166024840152929695929460209392909190858716908581604481855afa8015611663578591600091611633575b50106114a0575b505050505050509050565b88517f095ea7b300000000000000000000000000000000000000000000000000000000978887830152841660248201526000604482015260448152608081019080821067ffffffffffffffff831117610c0a576114ff918b5287610fbb565b8484159283156115bc575b5050501561155357610fb49291610fa69161154697985196879485015260248401602090939291936001600160a01b0360408201951681520152565b8038808080808080611495565b60848388519062461bcd60e51b82526004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152fd5b8a519081523060048201526001600160a01b0385166024820152925090829060449082905afa908115611628576000916115fb575b501538848161150a565b908482813d8311611621575b6116118183610c20565b81010312610476575051386115f1565b503d611607565b88513d6000823e3d90fd5b91508682813d831161165c575b61164a8183610c20565b8101031261047657508490513861148e565b503d611640565b8a513d6000823e3d90fd5b602081016001600160a01b03906024602083835116604051928380926370a0823160e01b82523060048301525afa908115611708578390600092611714575b506116bf925116836003541690611428565b6003541690813b156107f4576000916116ee916040519485809481936322a8c22760e01b8352600483016113cb565b03925af18015611708576116ff5750565b610fb990610bf6565b6040513d6000823e3d90fd5b9190506020823d8211611742575b8161172f60209383610c20565b81010312610476575051826116bf6116ad565b3d9150611722565b6001600160a01b036003541691823b156107f4576116ee926000926060926040518096819582947f26d3bc4e000000000000000000000000000000000000000000000000000000008452602060048501526117b660248501825160208091805160000b84520151910152565b6020810151606485015260408101516084850152015160a060a484015260c483019061116856fea26469706673582212200b883eede317cad47b0411aadab45cc3ab01e2e41990b9b2e8e16fc05dceffda64736f6c634300081200330000000000000000000000000211c3f15741a6a4de6b9ee630928bc8eab633000000000000000000000000004ab740157721105ae503fbad756a578171512525
Deployed Bytecode
0x60406080815260049081361015610020575b5050361561001e57600080fd5b005b600091823560e01c80631252b63414610abb5780632f35cdab14610922578381633d4564591461086a57508063400cbb89146105de578063715018a6146105775780638c3ecc451461054f5780638da5cb5b14610529578063a1db9782146104b857838163a930684b1461033b57508063cbca0b1714610313578063de7803d51461029b578063ed50d91c1461021f578063f14210a6146101b75763f2fde38b146100cb5750610011565b346101b35760203660031901126101b3576100e4610c86565b906100ed610df9565b6001600160a01b0380921692831561014a5750506000548273ffffffffffffffffffffffffffffffffffffffff19821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50346101b35760203660031901126101b3577f566e45b1c8057e725bf62796a7f1d37ae294393cab069725a09daddd1af98b79916102199135906101f9610df9565b6102038233610e81565b5133815260208101919091529081906040820190565b0390a180f35b5050346102975760203660031901126102975760207f8afee0baa440e5327af06cb8c3dd98c2cc7212152e50df3413be20b59b54eccb916001600160a01b03610266610c86565b61026e610df9565b16908173ffffffffffffffffffffffffffffffffffffffff19600354161760035551908152a180f35b5080fd5b5050346102975760203660031901126102975760207f1c50ecfa6f7a18b9830ee86a101a5ebbbb7654795412ab7e51a1dbe4b1fd44df916001600160a01b036102e2610c86565b6102ea610df9565b16908173ffffffffffffffffffffffffffffffffffffffff19600254161760025551908152a180f35b5050346102975781600319360112610297576020906001600160a01b03600254169051908152f35b928091506003193601126104b457813567ffffffffffffffff81116104af576103679036908401610d13565b91602435610373611307565b602084016001600160a01b039161039181848451163090339061135c565b6103a48184845116856002541690611428565b8260025416908383511690823b156104ab576064899283895195869485937fd3629d900000000000000000000000000000000000000000000000000000000085528b85015260248401523060448401525af180156104a15783918891610486575b505061041c91511682600354168587015191611428565b6003541692833b156104825761044793859284518096819482936322a8c22760e01b845283016113cb565b039134905af19081156104795750610462575b506001805580f35b61046b90610bf6565b61047657803861045a565b80fd5b513d84823e3d90fd5b8480fd5b610491919250610bf6565b61049d57818638610405565b8580fd5b85513d89823e3d90fd5b8880fd5b505050fd5b5050fd5b50503461029757806003193601126102975760607f33c35f9541201e342d5e7467016e65a0a06182eb12a5f17103f71cec95b6cb29916104f6610c86565b9060243590610503610df9565b61050e823385610f58565b6001600160a01b03815193168352336020840152820152a180f35b5050346102975781600319360112610297576001600160a01b0360209254169051908152f35b5050346102975781600319360112610297576020906001600160a01b03600354169051908152f35b8334610476578060031936011261047657610590610df9565b60006001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b508260031992808436011261029757823567ffffffffffffffff808211610866578282860196833603011261086657602435908111610866576106249036908601610d91565b9361062d611307565b61063734476111a8565b906001600160a01b038061065361064e8a806111cb565b6111e0565b169685519687956370a0823160e01b998a885230868901528760246020998a935afa98891561082857908b91839a610832575b506106af61069761064e84806111cb565b60a06106a385806111cb565b0135903090339061135c565b6106d86106bf61064e84806111cb565b866002541660a06106d086806111cb565b013591611428565b6106f460246106ec876002541694806111cb565b92018d6111f4565b92803b1561048257849283896107368e51978896879586947f73da48dc0000000000000000000000000000000000000000000000000000000086528501611248565b03925af180156108285790879594939291610809575b5050610766906107606024949596476111a8565b9061174a565b61077361064e8a806111cb565b169685519788938492835230908301525afa918215610800575085916107cb575b5061079f92506111a8565b806107ad575b826001805580f35b6107c4916107bf61064e3392806111cb565b610f58565b38806107a5565b905082813d83116107f9575b6107e18183610c20565b810103126107f45761079f915138610794565b600080fd5b503d6107d7565b513d87823e3d90fd5b6108169192949550610bf6565b610824578492918a3861074c565b8980fd5b88513d84823e3d90fd5b92509850508581813d831161085f575b61084c8183610c20565b810103126107f457898b91519838610686565b503d610842565b8380fd5b919050602036600319011261029757803567ffffffffffffffff81116101b3576108979036908301610d91565b926108a0611307565b6001600160a01b036002541691823b1561086657839060248351809581937f48dd40d9000000000000000000000000000000000000000000000000000000008352309083015234905af1908115610479575061090e575b506109078260208101519061174a565b6001805580f35b61091790610bf6565b6102975781386108f7565b508260031992808436011261029757823567ffffffffffffffff808211610866578282860196833603011261086657602435908111610866576109689036908601610d13565b93610971611307565b61097b34476111a8565b906001600160a01b038061099261064e8a806111cb565b169685519687956370a0823160e01b998a885230868901528760246020998a935afa98891561082857908b91839a610a87575b506109d661069761064e84806111cb565b6109e66106bf61064e84806111cb565b6109fa60246106ec876002541694806111cb565b92803b156104825784928389610a3c8e51978896879586947f69bd34a60000000000000000000000000000000000000000000000000000000086528501611248565b03925af180156108285790879594939291610a6c575b505061076690610a666024949596476111a8565b9061166e565b610a799192949550610bf6565b610824578492918a38610a52565b92509850508581813d8311610ab4575b610aa18183610c20565b810103126107f457898b915198386109c5565b503d610a97565b5091906003196060368201126101b35783359167ffffffffffffffff80841161048257818487019385360301126104825760243590811161048257610b039036908701610d13565b94610b0c611307565b610b1634476111a8565b936001600160a01b036002541690610b4a60a0610b3387806111cb565b0135956024610b4282806111cb565b9301906111f4565b959093833b156104ab57908894939291610b908751988996879586947f93849c8f0000000000000000000000000000000000000000000000000000000086528501611248565b03925af1908115610bed5750610bd6575b50610bb3610bb992936044359061166e565b476111a8565b80610bc657506001805580f35b610bd09033610e81565b3861045a565b610bb992610be6610bb392610bf6565b9250610ba1565b513d85823e3d90fd5b67ffffffffffffffff8111610c0a57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c0a57604052565b91908260409103126107f4576040516040810181811067ffffffffffffffff821117610c0a57604052809280358060000b81036107f4578252602090810135910152565b600435906001600160a01b03821682036107f457565b35906001600160a01b03821682036107f457565b67ffffffffffffffff8111610c0a57601f01601f191660200190565b81601f820112156107f457803590610ce382610cb0565b92610cf16040519485610c20565b828452602083830101116107f457816000926020809301838601378301015290565b91909160c0818403126107f4576040519067ffffffffffffffff9060a0830182811184821017610c0a576040528294610d4c8183610c42565b8452610d5a60408301610c9c565b6020850152606082013560408501526080820135606085015260a08201359283116107f457608092610d8c9201610ccc565b910152565b91909160a0818403126107f4576040519067ffffffffffffffff906080830182811184821017610c0a576040528294610dca8183610c42565b8452604082013560208501526060820135604085015260808201359283116107f457606092610d8c9201610ccc565b6001600160a01b03600054163303610e0d57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d15610e7c573d90610e6282610cb0565b91610e706040519384610c20565b82523d6000602084013e565b606090565b814710610f145760008080936001600160a01b038294165af1610ea2610e51565b5015610eaa57565b608460405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b0390921660248301526044820192909252610fb991610fb482606481015b03601f198101845283610c20565b610fbb565b565b6001600160a01b031690604051604081019080821067ffffffffffffffff831117610c0a5761102e916040526020938482527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858301526000808587829751910182855af1611028610e51565b916110cc565b80518061103c575b50505050565b818491810103126102975782015190811591821503610476575061106257808080611036565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b9192901561112d57508151156110e0575090565b3b156110e95790565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156111405750805190602001fd5b6111649060405191829162461bcd60e51b8352602060048401526024830190611168565b0390fd5b919082519283825260005b848110611194575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611173565b919082039182116111b557565b634e487b7160e01b600052601160045260246000fd5b90359060be19813603018212156107f4570190565b356001600160a01b03811681036107f45790565b903590601e19813603018212156107f4570180359067ffffffffffffffff82116107f4576020019181360383136107f457565b908060209392818452848401376000828201840152601f01601f1916010190565b929091604084526001600160a01b038061126185610c9c565b1660408601528061127460208601610c9c565b16606086015260408401358181168091036107f457608086015261129a60608501610c9c565b1660a08501526080830135601e19843603018112156107f45783019360208535950167ffffffffffffffff86116107f45785360381136107f4576112ef60a0916113049760c080860152610100850191611227565b94013560e08201526020818503910152611227565b90565b600260015414611318576002600155565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9290604051927f23b872dd0000000000000000000000000000000000000000000000000000000060208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117610c0a57610fb992604052610fbb565b60e0608061130493602084526113f260208501825160208091805160000b84520151910152565b6001600160a01b036020820151166060850152604081015182850152606081015160a085015201519160c0808201520190611168565b604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008082523060048301526001600160a01b038581166024840152929695929460209392909190858716908581604481855afa8015611663578591600091611633575b50106114a0575b505050505050509050565b88517f095ea7b300000000000000000000000000000000000000000000000000000000978887830152841660248201526000604482015260448152608081019080821067ffffffffffffffff831117610c0a576114ff918b5287610fbb565b8484159283156115bc575b5050501561155357610fb49291610fa69161154697985196879485015260248401602090939291936001600160a01b0360408201951681520152565b8038808080808080611495565b60848388519062461bcd60e51b82526004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152fd5b8a519081523060048201526001600160a01b0385166024820152925090829060449082905afa908115611628576000916115fb575b501538848161150a565b908482813d8311611621575b6116118183610c20565b81010312610476575051386115f1565b503d611607565b88513d6000823e3d90fd5b91508682813d831161165c575b61164a8183610c20565b8101031261047657508490513861148e565b503d611640565b8a513d6000823e3d90fd5b602081016001600160a01b03906024602083835116604051928380926370a0823160e01b82523060048301525afa908115611708578390600092611714575b506116bf925116836003541690611428565b6003541690813b156107f4576000916116ee916040519485809481936322a8c22760e01b8352600483016113cb565b03925af18015611708576116ff5750565b610fb990610bf6565b6040513d6000823e3d90fd5b9190506020823d8211611742575b8161172f60209383610c20565b81010312610476575051826116bf6116ad565b3d9150611722565b6001600160a01b036003541691823b156107f4576116ee926000926060926040518096819582947f26d3bc4e000000000000000000000000000000000000000000000000000000008452602060048501526117b660248501825160208091805160000b84520151910152565b6020810151606485015260408101516084850152015160a060a484015260c483019061116856fea26469706673582212200b883eede317cad47b0411aadab45cc3ab01e2e41990b9b2e8e16fc05dceffda64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000211c3f15741a6a4de6b9ee630928bc8eab633000000000000000000000000004ab740157721105ae503fbad756a578171512525
-----Decoded View---------------
Arg [0] : _dexTax (address): 0x0211C3F15741a6a4de6b9EE630928BC8EaB63300
Arg [1] : _multiVault (address): 0x4aB740157721105aE503fbad756a578171512525
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000211c3f15741a6a4de6b9ee630928bc8eab63300
Arg [1] : 0000000000000000000000004ab740157721105ae503fbad756a578171512525
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.