Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 81 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 22005781 | 371 days ago | IN | 0.1 ETH | 0.00004345 | ||||
| Start Arbitrage | 22004213 | 371 days ago | IN | 0 ETH | 0.00002937 | ||||
| Start Arbitrage | 22004178 | 371 days ago | IN | 0 ETH | 0.00003009 | ||||
| Start Arbitrage | 22004154 | 371 days ago | IN | 0 ETH | 0.0000729 | ||||
| Start Arbitrage | 22003840 | 371 days ago | IN | 0 ETH | 0.00003484 | ||||
| Start Arbitrage | 22003839 | 371 days ago | IN | 0 ETH | 0.00003484 | ||||
| Transfer | 22003125 | 372 days ago | IN | 0.098304 ETH | 0.000042 | ||||
| Start Arbitrage | 22003060 | 372 days ago | IN | 0 ETH | 0.00003045 | ||||
| Start Arbitrage | 22003058 | 372 days ago | IN | 0 ETH | 0.00003098 | ||||
| Start Arbitrage | 22003057 | 372 days ago | IN | 0 ETH | 0.00003098 | ||||
| Start Arbitrage | 22003003 | 372 days ago | IN | 0 ETH | 0.00002943 | ||||
| Start Arbitrage | 22003001 | 372 days ago | IN | 0 ETH | 0.00003097 | ||||
| Start Arbitrage | 22002963 | 372 days ago | IN | 0 ETH | 0.0000342 | ||||
| Start Arbitrage | 22002928 | 372 days ago | IN | 0 ETH | 0.00003052 | ||||
| Start Arbitrage | 21942886 | 380 days ago | IN | 0 ETH | 0.00022814 | ||||
| Start Arbitrage | 21942592 | 380 days ago | IN | 0 ETH | 0.00008244 | ||||
| Start Arbitrage | 21942063 | 380 days ago | IN | 0 ETH | 0.00029335 | ||||
| Start Arbitrage | 21942012 | 380 days ago | IN | 0 ETH | 0.00041966 | ||||
| Start Arbitrage | 21940628 | 380 days ago | IN | 0 ETH | 0.00002385 | ||||
| Start Arbitrage | 21940622 | 380 days ago | IN | 0 ETH | 0.00002406 | ||||
| Start Arbitrage | 21940573 | 380 days ago | IN | 0 ETH | 0.00002731 | ||||
| Start Arbitrage | 21936953 | 381 days ago | IN | 0 ETH | 0.00002734 | ||||
| Start Arbitrage | 21936729 | 381 days ago | IN | 0 ETH | 0.00002363 | ||||
| Start Arbitrage | 21936718 | 381 days ago | IN | 0 ETH | 0.00002303 | ||||
| Start Arbitrage | 21936715 | 381 days ago | IN | 0 ETH | 0.00002328 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ArbitrageV29
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IUniswapV2Router02.sol";
import "./interfaces/IAaveInterfaces.sol";
contract ArbitrageV29 is Ownable {
using SafeERC20 for IERC20;
// Custom errors
error InsufficientProfit(uint256 received, uint256 required);
error InvalidParameters();
error ContractPaused();
error Unauthorized();
// Configuration struct
struct Config {
uint16 minProfitThresholdBasisPoints;
bool paused;
uint8 version;
}
Config private config;
// Immutable addresses
IUniswapV2Router02Compatible public immutable uniswapRouter;
IUniswapV2Router02Compatible public immutable sushiswapRouter;
ILendingPoolCompatible public immutable lendingPool;
// Events
event ArbitrageExecuted(
address indexed tokenBorrowed,
uint256 amountBorrowed,
uint256 profit,
uint8 dexRoute
);
constructor(
address _addressesProvider,
address _uniswapRouter,
address _sushiswapRouter
) {
ILendingPoolAddressesProviderCompatible provider =
ILendingPoolAddressesProviderCompatible(_addressesProvider);
lendingPool = ILendingPoolCompatible(provider.getLendingPool());
uniswapRouter = IUniswapV2Router02Compatible(_uniswapRouter);
sushiswapRouter = IUniswapV2Router02Compatible(_sushiswapRouter);
config.minProfitThresholdBasisPoints = 10; // 0.1%
config.version = 1;
}
modifier whenNotPaused() {
if (config.paused) revert ContractPaused();
_;
}
function executeOperation(
address asset,
uint256 amount,
uint256 premium,
address,
bytes calldata params
) external returns (bool) {
if (msg.sender != address(lendingPool)) revert Unauthorized();
(address tokenToTrade, bool useUniswap) = abi.decode(params, (address, bool));
// Select routers based on the useUniswap parameter
IUniswapV2Router02Compatible firstRouter = useUniswap ? uniswapRouter : sushiswapRouter;
IUniswapV2Router02Compatible secondRouter = useUniswap ? sushiswapRouter : uniswapRouter;
// First trade: borrowed asset -> tokenToTrade
IERC20(asset).approve(address(firstRouter), amount);
address[] memory path = new address[](2);
path[0] = asset;
path[1] = tokenToTrade;
// Execute first swap
uint256[] memory firstAmounts = firstRouter.swapExactTokensForTokens(
amount,
0, // No minimum for first trade
path,
address(this),
block.timestamp + 300
);
// Reset approval
IERC20(asset).approve(address(firstRouter), 0);
// Second trade: tokenToTrade -> borrowed asset
address[] memory reversePath = new address[](2);
reversePath[0] = tokenToTrade;
reversePath[1] = asset;
// Calculate required amounts including profit
uint256 totalRequired = amount + premium;
uint256 minProfit = (amount * config.minProfitThresholdBasisPoints) / 10000;
uint256 amountOutMin = totalRequired + minProfit;
IERC20(tokenToTrade).approve(address(secondRouter), firstAmounts[1]);
uint256[] memory finalAmounts = secondRouter.swapExactTokensForTokens(
firstAmounts[1],
amountOutMin,
reversePath,
address(this),
block.timestamp + 300
);
// Reset approval
IERC20(tokenToTrade).approve(address(secondRouter), 0);
// Approve flash loan repayment
IERC20(asset).approve(address(lendingPool), totalRequired);
emit ArbitrageExecuted(
asset,
amount,
finalAmounts[1] - totalRequired,
useUniswap ? 1 : 2
);
return true;
}
function startArbitrage(
address tokenBorrow,
uint256 amount,
address tokenToTrade,
bool useUniswap
) external onlyOwner whenNotPaused {
if (tokenBorrow == tokenToTrade || amount == 0) revert InvalidParameters();
bytes memory params = abi.encode(tokenToTrade, useUniswap);
lendingPool.flashLoanSimple(address(this), tokenBorrow, amount, params, 0);
}
// Getters and admin functions remain the same
function isPaused() external view returns (bool) {
return config.paused;
}
function getMinProfitThreshold() external view returns (uint16) {
return config.minProfitThresholdBasisPoints;
}
function updateMinProfitThreshold(uint16 newThreshold) external onlyOwner {
config.minProfitThresholdBasisPoints = newThreshold;
}
function setPaused(bool _paused) external onlyOwner {
config.paused = _paused;
}
function withdrawToken(
address token,
uint256 amount,
address to
) external onlyOwner {
IERC20(token).safeTransfer(to, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
* 0 before setting it to a non-zero value.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface IUniswapV2Router02Compatible {
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function getAmountsOut(
uint256 amountIn,
address[] calldata path
) external view returns (uint256[] memory amounts);
function WETH() external pure returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface ILendingPoolAddressesProviderCompatible {
function getLendingPool() external view returns (address);
}
interface ILendingPoolCompatible {
function flashLoan(
address receiverAddress,
address[] calldata assets,
uint256[] calldata amounts,
uint256[] calldata modes,
address onBehalfOf,
bytes calldata params,
uint16 referralCode
) external;
function flashLoanSimple(
address receiverAddress,
address asset,
uint256 amount,
bytes calldata params,
uint16 referralCode
) external;
}
interface IFlashLoanReceiverCompatible {
function executeOperation(
address[] calldata assets,
uint256[] calldata amounts,
uint256[] calldata premiums,
address initiator,
bytes calldata params
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
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.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts 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;
}
}{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_addressesProvider","type":"address"},{"internalType":"address","name":"_uniswapRouter","type":"address"},{"internalType":"address","name":"_sushiswapRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[{"internalType":"uint256","name":"received","type":"uint256"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"InsufficientProfit","type":"error"},{"inputs":[],"name":"InvalidParameters","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenBorrowed","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountBorrowed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"dexRoute","type":"uint8"}],"name":"ArbitrageExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMinProfitThreshold","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lendingPool","outputs":[{"internalType":"contract ILendingPoolCompatible","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":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenBorrow","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenToTrade","type":"address"},{"internalType":"bool","name":"useUniswap","type":"bool"}],"name":"startArbitrage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sushiswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02Compatible","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02Compatible","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"newThreshold","type":"uint16"}],"name":"updateMinProfitThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60e08060405234620001a457606081620012148038038091620000238285620001a9565b833981010312620001a4576200003981620001e3565b6200005560406200004d60208501620001e3565b9301620001e3565b60008054336001600160a01b031982168117835560405192956001600160a01b0395909392602092849260049284928a929183167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08d80a3630261bf8b60e01b8352165afa9081156200019957858596959495926200014d575b5050821660c052166080521660a052630100000a63ff00ffff19600154161760015560405161101b9081620001f9823960805181818161042b015281816107400152610c62015260a0518181816101ed0152818161076d0152610c89015260c0518181816102a1015281816103bf015281816106d80152610a5d0152f35b91509192506020823d821162000190575b816200016d60209383620001a9565b810103126200018d57509083620001858193620001e3565b9038620000cf565b80fd5b3d91506200015e565b6040513d87823e3d90fd5b600080fd5b601f909101601f19168101906001600160401b03821190821017620001cd57604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001a45756fe6080604052600436101561001257600080fd5b6000803560e01c806316c38b3c14610cc35780631b11d0ff146106745780633ccdbb28146104b4578063715018a61461045a578063735de9f7146104155780638da5cb5b146103ee578063a59a9973146103a9578063b187bd2614610383578063c1ed4d7e1461021c578063e9240c2d146101d7578063f249d1341461019b578063f2fde38b146100d05763fb34fd12146100ac57600080fd5b346100cd57806003193601126100cd57602061ffff60015416604051908152f35b80fd5b50346100cd5760203660031901126100cd576100ea610d04565b6100f2610d35565b6001600160a01b0390811690811561014757600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346100cd5760203660031901126100cd5760043561ffff81168091036101d3576101c4610d35565b61ffff19600154161760015580f35b5080fd5b50346100cd57806003193601126100cd576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346100cd5760803660031901126100cd57610236610d04565b602435610241610d1f565b916064359182151580930361037f57610258610d35565b60ff60015460101c1661036d576001600160a01b03918216938216918483148015610365575b61035357859360405193602085015260408401526040835261029f83610d8d565b7f00000000000000000000000000000000000000000000000000000000000000001690813b1561034f578361030395604051968795869485936310ac2ddf60e21b85523060048601526024850152604484015260a0606484015260a4830190610f08565b82608483015203925af180156103445761031b575080f35b67ffffffffffffffff81116103305760405280f35b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b8380fd5b604051630e52390960e41b8152600490fd5b50811561027e565b60405163ab35696f60e01b8152600490fd5b8480fd5b50346100cd57806003193601126100cd57602060ff60015460101c166040519015158152f35b50346100cd57806003193601126100cd576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346100cd57806003193601126100cd57546040516001600160a01b039091168152602090f35b50346100cd57806003193601126100cd576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346100cd57806003193601126100cd57610473610d35565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346100cd5760603660031901126100cd576104ce610d04565b906104d7610d1f565b916104e0610d35565b60405163a9059cbb60e01b60208083019182526001600160a01b03958616602480850191909152356044808501919091528352919491929091601f199116610529606487610dbf565b60405192604084019667ffffffffffffffff9785811089821117610660576040528585527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648587015251869182919082855af1903d1561064f573d96871161063b578495966105a56105b29660405195601f8401160185610dbf565b83523d878785013e610f48565b805190828215928315610623575b505050156105cc575080f35b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b6106339350820181019101610de1565b3882816105c0565b634e487b7160e01b86526041600452602486fd5b91506105b293949550606091610f48565b634e487b7160e01b88526041600452602488fd5b50346100cd5760a03660031901126100cd5761068e610d04565b6064356001600160a01b038116036101d35760843567ffffffffffffffff80821161034f573660238301121561034f57816004013590811161034f57810136602482011161034f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163303610cb257816040910312610cae576024810135926001600160a01b03841684036100cd57604482013580151590036100cd57604482013515610c87577f0000000000000000000000000000000000000000000000000000000000000000935b604483013515610c60577f0000000000000000000000000000000000000000000000000000000000000000905b60405163095ea7b360e01b81526001600160a01b0387166004820152602480359082015260208180604481010381876001600160a01b038b165af18015610bc857610c41575b50604051956107e287610d8d565b6002875260403660208901376001600160a01b03861661080188610df9565b526001600160a01b03821661081588610e1c565b5261012c42014211610c2d578361085697604051809981926338ed173960e01b8352602435600484015284602484015260a0604484015260a4830190610ecb565b3060648301524261012c0160848301520381836001600160a01b0386165af1968715610bc8578497610c11575b5060405163095ea7b360e01b81526001600160a01b03918216600482015260248101859052906020908290604490829088908b165af18015610bc857610bf2575b50604051916108d283610d8d565b6002835260403660208501376001600160a01b0382166108f184610df9565b526001600160a01b03861661090584610e1c565b52610914604435602435610e2c565b9661ffff600154166024358160243502048114602435151715610bde5761271061094391602435020489610e2c565b90610983602061095283610e1c565b5160405163095ea7b360e01b81526001600160a01b0387166004820152602481019190915291829081906044820190565b03818a6001600160a01b038a165af18015610bd357916109ab91889493610b43575b50610e1c565b516109dc60405196879384936338ed173960e01b85526004850152602484015260a0604484015260a4830190610ecb565b3060648301524261012c0160848301520381836001600160a01b0386165af1928315610bc857908492918394610b9c575b5060405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905292602092849260449284929091165af18015610b7257610b7d575b5060405163095ea7b360e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031660048201526024810186905260208180604481010381866001600160a01b038a165af18015610b725790610abe9291610b435750610e1c565b51938403938411610b2f57507f8a1f187113deb75c6bc252a84e5990a475a33ae4931614e2b93779279bd6a2f6916060916044013515610b265760ff60015b604051956024358752602087015216604085015260018060a01b031692a2602060405160018152f35b60ff6002610afd565b634e487b7160e01b81526011600452602490fd5b610b649060203d602011610b6b575b610b5c8183610dbf565b810190610de1565b50386109a5565b503d610b52565b6040513d85823e3d90fd5b610b959060203d602011610b6b57610b5c8183610dbf565b5038610a4d565b602092919450610bbf6044913d8087833e610bb78183610dbf565b810190610e4f565b94919250610a0d565b6040513d86823e3d90fd5b6040513d89823e3d90fd5b634e487b7160e01b86526011600452602486fd5b610c0a9060203d602011610b6b57610b5c8183610dbf565b50386108c4565b610c269197503d8086833e610bb78183610dbf565b9538610883565b634e487b7160e01b84526011600452602484fd5b610c599060203d602011610b6b57610b5c8183610dbf565b50386107d4565b7f00000000000000000000000000000000000000000000000000000000000000009061078e565b7f000000000000000000000000000000000000000000000000000000000000000093610761565b8280fd5b6040516282b42960e81b8152600490fd5b50346100cd5760203660031901126100cd576004358015158091036101d357610cea610d35565b62ff00006001549160101b169062ff000019161760015580f35b600435906001600160a01b0382168203610d1a57565b600080fd5b604435906001600160a01b0382168203610d1a57565b6000546001600160a01b03163303610d4957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6060810190811067ffffffffffffffff821117610da957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610da957604052565b90816020910312610d1a57518015158103610d1a5790565b805115610e065760200190565b634e487b7160e01b600052603260045260246000fd5b805160011015610e065760400190565b91908201809211610e3957565b634e487b7160e01b600052601160045260246000fd5b906020908183820312610d1a57825167ffffffffffffffff93848211610d1a570181601f82011215610d1a578051938411610da9578360051b9060405194610e9985840187610dbf565b85528380860192820101928311610d1a578301905b828210610ebc575050505090565b81518152908301908301610eae565b90815180825260208080930193019160005b828110610eeb575050505090565b83516001600160a01b031685529381019392810192600101610edd565b919082519283825260005b848110610f34575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610f13565b91929015610faa5750815115610f5c575090565b3b15610f655790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610fbd5750805190602001fd5b60405162461bcd60e51b815260206004820152908190610fe1906024830190610f08565b0390fdfea264697066735822122000d4a0eac0d55db7e5124079f66a96a15ff0ca873751cc56dbcd6859092621c064736f6c63430008130033000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c50000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Deployed Bytecode
0x6080604052600436101561001257600080fd5b6000803560e01c806316c38b3c14610cc35780631b11d0ff146106745780633ccdbb28146104b4578063715018a61461045a578063735de9f7146104155780638da5cb5b146103ee578063a59a9973146103a9578063b187bd2614610383578063c1ed4d7e1461021c578063e9240c2d146101d7578063f249d1341461019b578063f2fde38b146100d05763fb34fd12146100ac57600080fd5b346100cd57806003193601126100cd57602061ffff60015416604051908152f35b80fd5b50346100cd5760203660031901126100cd576100ea610d04565b6100f2610d35565b6001600160a01b0390811690811561014757600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346100cd5760203660031901126100cd5760043561ffff81168091036101d3576101c4610d35565b61ffff19600154161760015580f35b5080fd5b50346100cd57806003193601126100cd576040517f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b03168152602090f35b50346100cd5760803660031901126100cd57610236610d04565b602435610241610d1f565b916064359182151580930361037f57610258610d35565b60ff60015460101c1661036d576001600160a01b03918216938216918483148015610365575b61035357859360405193602085015260408401526040835261029f83610d8d565b7f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a91690813b1561034f578361030395604051968795869485936310ac2ddf60e21b85523060048601526024850152604484015260a0606484015260a4830190610f08565b82608483015203925af180156103445761031b575080f35b67ffffffffffffffff81116103305760405280f35b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b8380fd5b604051630e52390960e41b8152600490fd5b50811561027e565b60405163ab35696f60e01b8152600490fd5b8480fd5b50346100cd57806003193601126100cd57602060ff60015460101c166040519015158152f35b50346100cd57806003193601126100cd576040517f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96001600160a01b03168152602090f35b50346100cd57806003193601126100cd57546040516001600160a01b039091168152602090f35b50346100cd57806003193601126100cd576040517f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168152602090f35b50346100cd57806003193601126100cd57610473610d35565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346100cd5760603660031901126100cd576104ce610d04565b906104d7610d1f565b916104e0610d35565b60405163a9059cbb60e01b60208083019182526001600160a01b03958616602480850191909152356044808501919091528352919491929091601f199116610529606487610dbf565b60405192604084019667ffffffffffffffff9785811089821117610660576040528585527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648587015251869182919082855af1903d1561064f573d96871161063b578495966105a56105b29660405195601f8401160185610dbf565b83523d878785013e610f48565b805190828215928315610623575b505050156105cc575080f35b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b6106339350820181019101610de1565b3882816105c0565b634e487b7160e01b86526041600452602486fd5b91506105b293949550606091610f48565b634e487b7160e01b88526041600452602488fd5b50346100cd5760a03660031901126100cd5761068e610d04565b6064356001600160a01b038116036101d35760843567ffffffffffffffff80821161034f573660238301121561034f57816004013590811161034f57810136602482011161034f577f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96001600160a01b03163303610cb257816040910312610cae576024810135926001600160a01b03841684036100cd57604482013580151590036100cd57604482013515610c87577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d935b604483013515610c60577f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f905b60405163095ea7b360e01b81526001600160a01b0387166004820152602480359082015260208180604481010381876001600160a01b038b165af18015610bc857610c41575b50604051956107e287610d8d565b6002875260403660208901376001600160a01b03861661080188610df9565b526001600160a01b03821661081588610e1c565b5261012c42014211610c2d578361085697604051809981926338ed173960e01b8352602435600484015284602484015260a0604484015260a4830190610ecb565b3060648301524261012c0160848301520381836001600160a01b0386165af1968715610bc8578497610c11575b5060405163095ea7b360e01b81526001600160a01b03918216600482015260248101859052906020908290604490829088908b165af18015610bc857610bf2575b50604051916108d283610d8d565b6002835260403660208501376001600160a01b0382166108f184610df9565b526001600160a01b03861661090584610e1c565b52610914604435602435610e2c565b9661ffff600154166024358160243502048114602435151715610bde5761271061094391602435020489610e2c565b90610983602061095283610e1c565b5160405163095ea7b360e01b81526001600160a01b0387166004820152602481019190915291829081906044820190565b03818a6001600160a01b038a165af18015610bd357916109ab91889493610b43575b50610e1c565b516109dc60405196879384936338ed173960e01b85526004850152602484015260a0604484015260a4830190610ecb565b3060648301524261012c0160848301520381836001600160a01b0386165af1928315610bc857908492918394610b9c575b5060405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905292602092849260449284929091165af18015610b7257610b7d575b5060405163095ea7b360e01b81527f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a96001600160a01b031660048201526024810186905260208180604481010381866001600160a01b038a165af18015610b725790610abe9291610b435750610e1c565b51938403938411610b2f57507f8a1f187113deb75c6bc252a84e5990a475a33ae4931614e2b93779279bd6a2f6916060916044013515610b265760ff60015b604051956024358752602087015216604085015260018060a01b031692a2602060405160018152f35b60ff6002610afd565b634e487b7160e01b81526011600452602490fd5b610b649060203d602011610b6b575b610b5c8183610dbf565b810190610de1565b50386109a5565b503d610b52565b6040513d85823e3d90fd5b610b959060203d602011610b6b57610b5c8183610dbf565b5038610a4d565b602092919450610bbf6044913d8087833e610bb78183610dbf565b810190610e4f565b94919250610a0d565b6040513d86823e3d90fd5b6040513d89823e3d90fd5b634e487b7160e01b86526011600452602486fd5b610c0a9060203d602011610b6b57610b5c8183610dbf565b50386108c4565b610c269197503d8086833e610bb78183610dbf565b9538610883565b634e487b7160e01b84526011600452602484fd5b610c599060203d602011610b6b57610b5c8183610dbf565b50386107d4565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9061078e565b7f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f93610761565b8280fd5b6040516282b42960e81b8152600490fd5b50346100cd5760203660031901126100cd576004358015158091036101d357610cea610d35565b62ff00006001549160101b169062ff000019161760015580f35b600435906001600160a01b0382168203610d1a57565b600080fd5b604435906001600160a01b0382168203610d1a57565b6000546001600160a01b03163303610d4957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6060810190811067ffffffffffffffff821117610da957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610da957604052565b90816020910312610d1a57518015158103610d1a5790565b805115610e065760200190565b634e487b7160e01b600052603260045260246000fd5b805160011015610e065760400190565b91908201809211610e3957565b634e487b7160e01b600052601160045260246000fd5b906020908183820312610d1a57825167ffffffffffffffff93848211610d1a570181601f82011215610d1a578051938411610da9578360051b9060405194610e9985840187610dbf565b85528380860192820101928311610d1a578301905b828210610ebc575050505090565b81518152908301908301610eae565b90815180825260208080930193019160005b828110610eeb575050505090565b83516001600160a01b031685529381019392810192600101610edd565b919082519283825260005b848110610f34575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610f13565b91929015610faa5750815115610f5c575090565b3b15610f655790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610fbd5750805190602001fd5b60405162461bcd60e51b815260206004820152908190610fe1906024830190610f08565b0390fdfea264697066735822122000d4a0eac0d55db7e5124079f66a96a15ff0ca873751cc56dbcd6859092621c064736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c50000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
-----Decoded View---------------
Arg [0] : _addressesProvider (address): 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5
Arg [1] : _uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : _sushiswapRouter (address): 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b53c1a33016b2dc2ff3653530bff1848a515c8c5
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.