More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 565 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate | 16143548 | 789 days ago | IN | 0 ETH | 0.00678216 | ||||
Migrate | 15883093 | 825 days ago | IN | 0 ETH | 0.00666047 | ||||
Migrate | 15446610 | 888 days ago | IN | 0 ETH | 0.00691715 | ||||
Migrate | 15339772 | 905 days ago | IN | 0 ETH | 0.00304028 | ||||
Migrate | 14829027 | 989 days ago | IN | 0 ETH | 0.00786491 | ||||
Migrate | 14236784 | 1081 days ago | IN | 0 ETH | 0.01902968 | ||||
Migrate | 14177907 | 1091 days ago | IN | 0 ETH | 0.0035873 | ||||
Migrate | 14081661 | 1105 days ago | IN | 0 ETH | 0.06562004 | ||||
Migrate | 13956871 | 1125 days ago | IN | 0 ETH | 0.00744032 | ||||
Migrate | 13816824 | 1146 days ago | IN | 0 ETH | 0.0043033 | ||||
Migrate | 13647522 | 1173 days ago | IN | 0 ETH | 0.04152572 | ||||
Migrate | 13487102 | 1198 days ago | IN | 0 ETH | 0.0449056 | ||||
Migrate | 13380243 | 1215 days ago | IN | 0 ETH | 0.00698286 | ||||
Migrate | 13307775 | 1226 days ago | IN | 0 ETH | 0.02960379 | ||||
Migrate | 13306739 | 1227 days ago | IN | 0 ETH | 0.02562277 | ||||
Migrate | 13287199 | 1230 days ago | IN | 0 ETH | 0.00366839 | ||||
Migrate | 13285325 | 1230 days ago | IN | 0 ETH | 0.0272648 | ||||
Migrate | 13241181 | 1237 days ago | IN | 0 ETH | 0.02297167 | ||||
Migrate | 13215391 | 1241 days ago | IN | 0 ETH | 0.02650578 | ||||
Migrate | 13209086 | 1242 days ago | IN | 0 ETH | 0.01877248 | ||||
Migrate | 13205576 | 1242 days ago | IN | 0 ETH | 0.03218068 | ||||
Migrate | 13205511 | 1242 days ago | IN | 0 ETH | 0.00226256 | ||||
Migrate | 13205497 | 1242 days ago | IN | 0 ETH | 0.00684179 | ||||
Migrate | 13193258 | 1244 days ago | IN | 0 ETH | 0.00804224 | ||||
Migrate | 13186972 | 1245 days ago | IN | 0 ETH | 0.07200736 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15883093 | 825 days ago | 0.00032785 ETH | ||||
15883093 | 825 days ago | 0.00032785 ETH | ||||
15339772 | 905 days ago | 0.00006809 ETH | ||||
15339772 | 905 days ago | 0.00006809 ETH | ||||
14829027 | 989 days ago | 0.00162111 ETH | ||||
14829027 | 989 days ago | 0.00162111 ETH | ||||
14081661 | 1105 days ago | 0.00212244 ETH | ||||
14081661 | 1105 days ago | 0.00212244 ETH | ||||
13285325 | 1230 days ago | 0.00211315 ETH | ||||
13285325 | 1230 days ago | 0.00211315 ETH | ||||
13209086 | 1242 days ago | 0.00097093 ETH | ||||
13209086 | 1242 days ago | 0.00097093 ETH | ||||
13205576 | 1242 days ago | 0.00022998 ETH | ||||
13205576 | 1242 days ago | 0.00022998 ETH | ||||
13170549 | 1248 days ago | 0.00543484 ETH | ||||
13170549 | 1248 days ago | 0.00543484 ETH | ||||
13145075 | 1252 days ago | 0.00055853 ETH | ||||
13145075 | 1252 days ago | 0.00055853 ETH | ||||
13138010 | 1253 days ago | 0.02360547 ETH | ||||
13138010 | 1253 days ago | 0.02360547 ETH | ||||
13016857 | 1271 days ago | 0.0241526 ETH | ||||
13016857 | 1271 days ago | 0.0241526 ETH | ||||
12992865 | 1275 days ago | 0.01044851 ETH | ||||
12992865 | 1275 days ago | 0.01044851 ETH | ||||
12992826 | 1275 days ago | 0.00153645 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
OrionMigrator
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol'; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol'; import "./interfaces/IStakingRewards.sol"; import "./interfaces/IOrionPoolV2Router01.sol"; import "./interfaces/IOrionMigrator.sol"; import "./interfaces/IWETH9.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; contract OrionMigrator is IOrionMigrator { using SafeERC20 for IERC20; IStakingRewards public immutable stakingRewards; IUniswapV2Pair public immutable uniswapPair; IERC20 public immutable token0; IERC20 public immutable token1; IOrionPoolV2Router01 public immutable router; IWETH9 public immutable WETH9; constructor(address _pair, address _router, address _WETH9, address _stakingRewards) { uniswapPair = IUniswapV2Pair(_pair); token0 = IERC20(IUniswapV2Pair(_pair).token0()); token1 = IERC20(IUniswapV2Pair(_pair).token1()); router = IOrionPoolV2Router01(_router); WETH9 = IWETH9(_WETH9); stakingRewards = IStakingRewards(_stakingRewards); } receive() external payable { require(msg.sender == address(WETH9)); } function migrate(uint256 tokensToMigrate, uint amount0Min, uint amount1Min, address to, uint deadline) external override { require(uniswapPair.transferFrom(msg.sender, address(uniswapPair), tokensToMigrate), 'TRANSFER_FROM_FAILED'); (uint256 amount0V1, uint256 amount1V1) = uniswapPair.burn(address(this)); token0.safeApprove(address(router), amount0V1); token1.safeApprove(address(router), amount1V1); (uint amount0V2, uint amount1V2, uint liquidity) = router.addLiquidity(address(token0), address(token1), amount0V1, amount1V1, amount0Min, amount1Min, address(this), deadline ); address ornPair = IUniswapV2Factory(router.factory()).getPair(address(token0), address(token1)); IERC20(ornPair).safeApprove(address(stakingRewards), liquidity); stakingRewards.stakeTo(liquidity, to); emit TestCalc(amount0V1, amount1V1, amount0V2, amount1V2); if (amount0V2 < amount0V1) { token0.safeApprove(address(router), 0); uint256 refund0 = amount0V1 - amount0V2; if (address(token0) == address(WETH9)) { WETH9.withdraw(refund0); msg.sender.transfer(refund0); } else { token0.safeTransfer(msg.sender, refund0); } } if (amount1V2 < amount1V1) { token1.safeApprove(address(router), 0); uint256 refund1 = amount1V1 - amount1V2; if (address(token1) == address(WETH9)) { WETH9.withdraw(refund1); msg.sender.transfer(refund1); } else { token1.safeTransfer(msg.sender, refund1); } } } event TestCalc ( uint256 amount0V1, uint256 amount1V1, uint256 amount0V2, uint256 amount1V2 ); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; interface IOrionMigrator { function migrate(uint256 tokensToMigrate, uint amount0Min, uint amount1Min, address to, uint deadline) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.2; interface IOrionPoolV2Router01 { function factory() external view returns (address); function WETH() external view returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; interface IStakingRewards { // Views function rewardPerToken() external view returns (uint256); function earned(address account) external view returns (uint256); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); // Mutative function stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external; function stake(uint256 amount) external; function stakeTo(uint256 amount, address to) external; function withdraw(uint256 amount) external; function getReward() external; function exit() external; } interface IUniswapV2ERC20 { function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; }
// SPDX-License-Identifier: GNU pragma solidity 0.7.6; interface IWETH9 { function deposit() external payable; function withdraw(uint256) external; function transfer(address to, uint value) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_pair","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"},{"internalType":"address","name":"_stakingRewards","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0V1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1V1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0V2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1V2","type":"uint256"}],"name":"TestCalc","type":"event"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"contract IWETH9","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMigrate","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IOrionPoolV2Router01","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingRewards","outputs":[{"internalType":"contract IStakingRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
61014060405234801561001157600080fd5b506040516112bf3803806112bf8339818101604052608081101561003457600080fd5b5080516020808301516040808501516060958601519585901b6001600160601b03191660a0528151630dfe168160e01b815291519495929490936001600160a01b03871692630dfe16819260048083019392829003018186803b15801561009a57600080fd5b505afa1580156100ae573d6000803e3d6000fd5b505050506040513d60208110156100c457600080fd5b505160601b6001600160601b03191660c0526040805163d21220a760e01b815290516001600160a01b0386169163d21220a7916004808301926020929190829003018186803b15801561011657600080fd5b505afa15801561012a573d6000803e3d6000fd5b505050506040513d602081101561014057600080fd5b50516001600160601b0319606091821b811660e05293811b84166101005291821b831661012052901b166080525060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c61107061024f60003980608452806101c0528061086a52806108c45280610a0f5280610a695250806104105280610464528061052252806105c9528061083b52806109e05280610b5d52508061022c528061044252806104c8528061067952806109be5280610a395280610b2552508061019c52806103ee52806104a05280610651528061081952806108945280610980525080610208528061026c528061033d5250806101e45280610708528061072f52506110706000f3fe6080604052600436106100745760003560e01c8063c816841b1161004e578063c816841b14610110578063d21220a714610125578063e23d54031461013a578063f887ea4014610185576100b0565b80630dfe1681146100b55780634aa4a4fc146100e657806364b87a70146100fb576100b0565b366100b057336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100ae57600080fd5b005b600080fd5b3480156100c157600080fd5b506100ca61019a565b604080516001600160a01b039092168252519081900360200190f35b3480156100f257600080fd5b506100ca6101be565b34801561010757600080fd5b506100ca6101e2565b34801561011c57600080fd5b506100ca610206565b34801561013157600080fd5b506100ca61022a565b34801561014657600080fd5b506100ae600480360360a081101561015d57600080fd5b508035906020810135906040810135906001600160a01b03606082013516906080013561024e565b34801561019157600080fd5b506100ca610b5b565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016602482018190526044820188905291516323b872dd916064808201926020929091908290030181600087803b1580156102c457600080fd5b505af11580156102d8573d6000803e3d6000fd5b505050506040513d60208110156102ee57600080fd5b5051610338576040805162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b604482015290519081900360640190fd5b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166389afcb44306040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b1580156103a957600080fd5b505af11580156103bd573d6000803e3d6000fd5b505050506040513d60408110156103d357600080fd5b50805160209091015190925090506104356001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084610b7f565b6104896001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610b7f565b6040805162e8e33760e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201859052606482018490526084820189905260a482018890523060c483015260e482018690529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e8e33700916101048082019260609290919082900301818787803b15801561056d57600080fd5b505af1158015610581573d6000803e3d6000fd5b505050506040513d606081101561059757600080fd5b508051602080830151604093840151845163c45a015560e01b8152945193975090955093506000926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263c45a015592600480840193919291829003018186803b15801561060d57600080fd5b505afa158015610621573d6000803e3d6000fd5b505050506040513d602081101561063757600080fd5b50516040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301529151919092169163e6a43905916044808301926020929190829003018186803b1580156106cb57600080fd5b505afa1580156106df573d6000803e3d6000fd5b505050506040513d60208110156106f557600080fd5b5051905061072d6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084610b7f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166354d39b34838a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b1580156107a457600080fd5b505af11580156107b8573d6000803e3d6000fd5b505060408051898152602081018990528082018890526060810187905290517f59a8aec89ad87feec7574127f0b7e1bc5884579d0a8580df7fac6bfccda3d8769350908190036080019150a1858410156109a9576108616001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000610b7f565b600084870390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415610973577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561092857600080fd5b505af115801561093c573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f1935050505015801561096d573d6000803e3d6000fd5b506109a7565b6109a76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610c97565b505b84831015610b4e57610a066001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000610b7f565b600083860390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415610b18577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610acd57600080fd5b505af1158015610ae1573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015610b12573d6000803e3d6000fd5b50610b4c565b610b4c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610c97565b505b5050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b801580610c05575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610bd757600080fd5b505afa158015610beb573d6000803e3d6000fd5b505050506040513d6020811015610c0157600080fd5b5051155b610c405760405162461bcd60e51b81526004018080602001828103825260368152602001806110056036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610c92908490610ce5565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c929084905b6000610d3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d969092919063ffffffff16565b805190915015610c9257808060200190516020811015610d5957600080fd5b5051610c925760405162461bcd60e51b815260040180806020018281038252602a815260200180610fdb602a913960400191505060405180910390fd5b6060610da58484600085610daf565b90505b9392505050565b606082471015610df05760405162461bcd60e51b8152600401808060200182810382526026815260200180610fb56026913960400191505060405180910390fd5b610df985610f0a565b610e4a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610e885780518252601f199092019160209182019101610e69565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610eea576040519150601f19603f3d011682016040523d82523d6000602084013e610eef565b606091505b5091509150610eff828286610f10565b979650505050505050565b3b151590565b60608315610f1f575081610da8565b825115610f2f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f79578181015183820152602001610f61565b50505050905090810190601f168015610fa65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220b437d41b008fcdbe05ff6632e417c1ef5b8a54c6aa59c97cd3bbce6e33b33e0164736f6c634300070600330000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b396890000000000000000000000005526856cd51ad5be9867249f957fd539bc3c0988000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d2
Deployed Bytecode
0x6080604052600436106100745760003560e01c8063c816841b1161004e578063c816841b14610110578063d21220a714610125578063e23d54031461013a578063f887ea4014610185576100b0565b80630dfe1681146100b55780634aa4a4fc146100e657806364b87a70146100fb576100b0565b366100b057336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216146100ae57600080fd5b005b600080fd5b3480156100c157600080fd5b506100ca61019a565b604080516001600160a01b039092168252519081900360200190f35b3480156100f257600080fd5b506100ca6101be565b34801561010757600080fd5b506100ca6101e2565b34801561011c57600080fd5b506100ca610206565b34801561013157600080fd5b506100ca61022a565b34801561014657600080fd5b506100ae600480360360a081101561015d57600080fd5b508035906020810135906040810135906001600160a01b03606082013516906080013561024e565b34801561019157600080fd5b506100ca610b5b565b7f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a81565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b7f000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d281565b7f0000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b3968981565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b604080516323b872dd60e01b81523360048201526001600160a01b037f0000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b3968916602482018190526044820188905291516323b872dd916064808201926020929091908290030181600087803b1580156102c457600080fd5b505af11580156102d8573d6000803e3d6000fd5b505050506040513d60208110156102ee57600080fd5b5051610338576040805162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b604482015290519081900360640190fd5b6000807f0000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b396896001600160a01b03166389afcb44306040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b1580156103a957600080fd5b505af11580156103bd573d6000803e3d6000fd5b505050506040513d60408110156103d357600080fd5b50805160209091015190925090506104356001600160a01b037f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a167f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c098884610b7f565b6104896001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2167f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c098883610b7f565b6040805162e8e33760e81b81526001600160a01b037f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a811660048301527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28116602483015260448201859052606482018490526084820189905260a482018890523060c483015260e482018690529151600092839283927f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c09889092169163e8e33700916101048082019260609290919082900301818787803b15801561056d57600080fd5b505af1158015610581573d6000803e3d6000fd5b505050506040513d606081101561059757600080fd5b508051602080830151604093840151845163c45a015560e01b8152945193975090955093506000926001600160a01b037f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c0988169263c45a015592600480840193919291829003018186803b15801561060d57600080fd5b505afa158015610621573d6000803e3d6000fd5b505050506040513d602081101561063757600080fd5b50516040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a811660048301527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2811660248301529151919092169163e6a43905916044808301926020929190829003018186803b1580156106cb57600080fd5b505afa1580156106df573d6000803e3d6000fd5b505050506040513d60208110156106f557600080fd5b5051905061072d6001600160a01b0382167f000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d284610b7f565b7f000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d26001600160a01b03166354d39b34838a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b1580156107a457600080fd5b505af11580156107b8573d6000803e3d6000fd5b505060408051898152602081018990528082018890526060810187905290517f59a8aec89ad87feec7574127f0b7e1bc5884579d0a8580df7fac6bfccda3d8769350908190036080019150a1858410156109a9576108616001600160a01b037f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a167f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c09886000610b7f565b600084870390507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03167f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a6001600160a01b03161415610973577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561092857600080fd5b505af115801561093c573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f1935050505015801561096d573d6000803e3d6000fd5b506109a7565b6109a76001600160a01b037f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a163383610c97565b505b84831015610b4e57610a066001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2167f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c09886000610b7f565b600083860390507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03167f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03161415610b18577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610acd57600080fd5b505af1158015610ae1573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015610b12573d6000803e3d6000fd5b50610b4c565b610b4c6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163383610c97565b505b5050505050505050505050565b7f0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c098881565b801580610c05575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610bd757600080fd5b505afa158015610beb573d6000803e3d6000fd5b505050506040513d6020811015610c0157600080fd5b5051155b610c405760405162461bcd60e51b81526004018080602001828103825260368152602001806110056036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610c92908490610ce5565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c929084905b6000610d3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d969092919063ffffffff16565b805190915015610c9257808060200190516020811015610d5957600080fd5b5051610c925760405162461bcd60e51b815260040180806020018281038252602a815260200180610fdb602a913960400191505060405180910390fd5b6060610da58484600085610daf565b90505b9392505050565b606082471015610df05760405162461bcd60e51b8152600401808060200182810382526026815260200180610fb56026913960400191505060405180910390fd5b610df985610f0a565b610e4a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610e885780518252601f199092019160209182019101610e69565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610eea576040519150601f19603f3d011682016040523d82523d6000602084013e610eef565b606091505b5091509150610eff828286610f10565b979650505050505050565b3b151590565b60608315610f1f575081610da8565b825115610f2f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f79578181015183820152602001610f61565b50505050905090810190601f168015610fa65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220b437d41b008fcdbe05ff6632e417c1ef5b8a54c6aa59c97cd3bbce6e33b33e0164736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b396890000000000000000000000005526856cd51ad5be9867249f957fd539bc3c0988000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d2
-----Decoded View---------------
Arg [0] : _pair (address): 0x6C8b0Dee9E90EA9F790DA5DaF6f5B20D23B39689
Arg [1] : _router (address): 0x5526856CD51aD5Be9867249f957fd539Bc3c0988
Arg [2] : _WETH9 (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : _stakingRewards (address): 0xf5ae67f7E47680cc52eAe05fF0f305A65c7B90D2
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c8b0dee9e90ea9f790da5daf6f5b20d23b39689
Arg [1] : 0000000000000000000000005526856cd51ad5be9867249f957fd539bc3c0988
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 000000000000000000000000f5ae67f7e47680cc52eae05ff0f305a65c7b90d2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.