Source Code
Latest 7 from a total of 7 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Update Swap Thre... | 38371167 | 196 days ago | IN | 0 S | 0.00158075 | ||||
| Set Staking Rewa... | 34660062 | 221 days ago | IN | 0 S | 0.00323328 | ||||
| Swap | 34659608 | 221 days ago | IN | 0 S | 0.03303025 | ||||
| Set Staking Rewa... | 34658402 | 221 days ago | IN | 0 S | 0.00323328 | ||||
| Set Staking Rewa... | 34654926 | 221 days ago | IN | 0 S | 0.00323328 | ||||
| Update Stake Thr... | 34654086 | 221 days ago | IN | 0 S | 0.00157712 | ||||
| Update Stake Thr... | 34335369 | 223 days ago | IN | 0 S | 0.00157712 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xd99f4170...E4Edb98dD The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Processor
Compiler Version
v0.8.20+commit.a1b79de6
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.20;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IStakingRewards.sol";
import "./interfaces/IRouter.sol";
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
}
contract Processor is Ownable {
IRouter public router = IRouter(0x1D368773735ee1E678950B7A97bcA2CafB330CDc);
address public token;
address public reward;
address public weth = address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38);
address public stakingRewards;
uint256 public swapThreshold = 1 ether;
uint256 public stakeThreshold = 5 ether;
bool isProcessing;
constructor(address _token, address _staking) {
token = _token; //cronje
stakingRewards = _staking; //andre
IERC20(token).approve(address(router), type(uint256).max);
IERC20(weth).approve(address(stakingRewards), type(uint256).max);
}
function swap() public {
uint256 balance = IERC20(token).balanceOf(address(this));
IRouter.route[] memory routes = new IRouter.route[](1);
routes[0] = IRouter.route({from: token, to: weth, stable: false});
router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
balance,
0, // amountOutMin
routes,
address(this),
block.timestamp + 30
);
}
function top() public {
uint256 balance = IERC20(weth).balanceOf(address(this));
IERC20(weth).transfer(stakingRewards, balance);
IStakingRewards(stakingRewards).topUp(balance);
}
function process() public {
if (isProcessing == false) {
isProcessing = true;
uint256 tokenBalance = IERC20(token).balanceOf(address(this));
if (tokenBalance >= swapThreshold) {
swap();
}
uint256 wethBalance = IERC20(weth).balanceOf(address(this));
if (wethBalance >= stakeThreshold) {
top();
}
isProcessing = false;
}
}
function setToken(address _token) external onlyOwner {
token = _token;
IERC20(token).approve(address(router), type(uint256).max);
}
function setStakingRewards(address _staking) external onlyOwner {
stakingRewards = _staking;
IERC20(weth).approve(address(stakingRewards), type(uint256).max);
}
function updateStakeThreshold(uint256 _amount) external onlyOwner {
stakeThreshold = _amount;
}
function updateSwapThreshold(uint256 _amount) external onlyOwner {
swapThreshold = _amount;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.20;
interface IRouter {
error EXPIRED();
error IDENTICAL();
error ZERO_ADDRESS();
error INSUFFICIENT_AMOUNT();
error INSUFFICIENT_LIQUIDITY();
error INSUFFICIENT_OUTPUT_AMOUNT();
error INVALID_PATH();
error INSUFFICIENT_B_AMOUNT();
error INSUFFICIENT_A_AMOUNT();
error EXCESSIVE_INPUT_AMOUNT();
error ETH_TRANSFER_FAILED();
error INVALID_RESERVES();
struct route {
/// @dev token from
address from;
/// @dev token to
address to;
/// @dev is stable route
bool stable;
}
/// @notice sorts the tokens to see what the expected LP output would be for token0 and token1 (A/B)
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @return token0 address of which becomes token0
/// @return token1 address of which becomes token1
function sortTokens(
address tokenA,
address tokenB
) external pure returns (address token0, address token1);
/// @notice calculates the CREATE2 address for a pair without making any external calls
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @return pair address of the pair
function pairFor(
address tokenA,
address tokenB,
bool stable
) external view returns (address pair);
/// @notice fetches and sorts the reserves for a pair
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @return reserveA get the reserves for tokenA
/// @return reserveB get the reserves for tokenB
function getReserves(
address tokenA,
address tokenB,
bool stable
) external view returns (uint256 reserveA, uint256 reserveB);
/// @notice performs chained getAmountOut calculations on any number of pairs
/// @param amountIn the amount of tokens of routes[0] to swap
/// @param routes the struct of the hops the swap should take
/// @return amounts uint array of the amounts out
function getAmountsOut(
uint256 amountIn,
route[] memory routes
) external view returns (uint256[] memory amounts);
/// @notice performs chained getAmountOut calculations on any number of pairs
/// @param amountIn amount of tokenIn
/// @param tokenIn address of the token going in
/// @param tokenOut address of the token coming out
/// @return amount uint amount out
/// @return stable if the curve used is stable or not
function getAmountOut(
uint256 amountIn,
address tokenIn,
address tokenOut
) external view returns (uint256 amount, bool stable);
/// @notice performs calculations to determine the expected state when adding liquidity
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @param amountADesired amount of tokenA desired to be added
/// @param amountBDesired amount of tokenB desired to be added
/// @return amountA amount of tokenA added
/// @return amountB amount of tokenB added
/// @return liquidity liquidity value added
function quoteAddLiquidity(
address tokenA,
address tokenB,
bool stable,
uint256 amountADesired,
uint256 amountBDesired
)
external
view
returns (uint256 amountA, uint256 amountB, uint256 liquidity);
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @param liquidity liquidity value to remove
/// @return amountA amount of tokenA removed
/// @return amountB amount of tokenB removed
function quoteRemoveLiquidity(
address tokenA,
address tokenB,
bool stable,
uint256 liquidity
) external view returns (uint256 amountA, uint256 amountB);
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @param amountADesired amount of tokenA desired to be added
/// @param amountBDesired amount of tokenB desired to be added
/// @param amountAMin slippage for tokenA calculated from this param
/// @param amountBMin slippage for tokenB calculated from this param
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountA amount of tokenA used
/// @return amountB amount of tokenB used
/// @return liquidity amount of liquidity minted
function addLiquidity(
address tokenA,
address tokenB,
bool stable,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);
/// @param token the address of token
/// @param stable if the pair is using the stable curve
/// @param amountTokenDesired desired amount for token
/// @param amountTokenMin slippage for token
/// @param amountETHMin minimum amount of ETH added (slippage)
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountToken amount of the token used
/// @return amountETH amount of ETH used
/// @return liquidity amount of liquidity minted
function addLiquidityETH(
address token,
bool stable,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @param amountADesired amount of tokenA desired to be added
/// @param amountBDesired amount of tokenB desired to be added
/// @param amountAMin slippage for tokenA calculated from this param
/// @param amountBMin slippage for tokenB calculated from this param
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountA amount of tokenA used
/// @return amountB amount of tokenB used
/// @return liquidity amount of liquidity minted
function addLiquidityAndStake(
address tokenA,
address tokenB,
bool stable,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);
/// @notice adds liquidity to a legacy pair using ETH, and stakes it into a gauge on "to's" behalf
/// @param token the address of token
/// @param stable if the pair is using the stable curve
/// @param amountTokenDesired amount of token to be used
/// @param amountTokenMin slippage of token
/// @param amountETHMin slippage of ETH
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountA amount of tokenA used
/// @return amountB amount of tokenB used
/// @return liquidity amount of liquidity minted
function addLiquidityETHAndStake(
address token,
bool stable,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (uint256 amountA, uint256 amountB, uint256 liquidity);
/// @param tokenA the address of tokenA
/// @param tokenB the address of tokenB
/// @param stable if the pair is using the stable curve
/// @param liquidity amount of LP tokens to remove
/// @param amountAMin slippage of tokenA
/// @param amountBMin slippage of tokenB
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountA amount of tokenA used
/// @return amountB amount of tokenB used
function removeLiquidity(
address tokenA,
address tokenB,
bool stable,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
/// @param token address of the token
/// @param stable if the pair is using the stable curve
/// @param liquidity liquidity tokens to remove
/// @param amountTokenMin slippage of token
/// @param amountETHMin slippage of ETH
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amountToken amount of token used
/// @return amountETH amount of ETH used
function removeLiquidityETH(
address token,
bool stable,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
/// @param amountIn amount to send ideally
/// @param amountOutMin slippage of amount out
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
route[] memory routes,
address to,
uint deadline
) external returns (uint256[] memory amounts);
/// @param amountOutMin slippage of token
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapExactETHForTokens(
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
/// @param amountOut amount of tokens to get out
/// @param amountInMax max amount of tokens to put in to achieve amountOut (slippage)
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapTokensForExactETH(
uint amountOut,
uint amountInMax,
route[] calldata routes,
address to,
uint deadline
) external returns (uint256[] memory amounts);
/// @param amountIn amount of tokens to swap
/// @param amountOutMin slippage of token
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
/// @param amountOut exact amount out or revert
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
/// @return amounts amounts returned
function swapETHForExactTokens(
uint amountOut,
route[] calldata routes,
address to,
uint deadline
) external payable returns (uint256[] memory amounts);
/// @param amountIn token amount to swap
/// @param amountOutMin slippage of token
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external;
/// @param amountOutMin slippage of token
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external payable;
/// @param amountIn token amount to swap
/// @param amountOutMin slippage of token
/// @param routes the hops the swap should take
/// @param to the address the liquidity tokens should be minted to
/// @param deadline timestamp deadline
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
route[] calldata routes,
address to,
uint256 deadline
) external;
/// @notice **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens)****
/// @param token address of the token
/// @param stable if the swap curve is stable
/// @param liquidity liquidity value (lp tokens)
/// @param amountTokenMin slippage of token
/// @param amountETHMin slippage of ETH
/// @param to address to send to
/// @param deadline timestamp deadline
/// @return amountToken amount of token received
/// @return amountETH amount of ETH received
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
bool stable,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function factory() external pure returns (address);
function WETH() external pure returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IStakingRewards {
function periodFinish() external view returns(uint256);
function notifyRewardAmount(uint256) external;
function topUp(uint256) external;
function owner() external view returns(address);
function transferOwnership(address) external;
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_staking","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reward","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"}],"name":"setStakingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"top","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateStakeThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateSwapThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x6080604052600180546001600160a01b0319908116731d368773735ee1e678950b7a97bca2cafb330cdc179091556004805490911673039e2fb66102314ce7b64ce5ce3e5183bc94ad38179055670de0b6b3a7640000600655674563918244f4000060075534801561007057600080fd5b50604051610c99380380610c9983398101604081905261008f91610224565b610098336101b8565b600280546001600160a01b03199081166001600160a01b03858116918217909355600580549092168484161790915560015460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044016020604051808303816000875af115801561010f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101339190610257565b506004805460055460405163095ea7b360e01b81526001600160a01b03918216938101939093526000196024840152169063095ea7b3906044016020604051808303816000875af115801561018c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b09190610257565b505050610280565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461021f57600080fd5b919050565b6000806040838503121561023757600080fd5b61024083610208565b915061024e60208401610208565b90509250929050565b60006020828403121561026957600080fd5b8151801515811461027957600080fd5b9392505050565b610a0a8061028f6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638119c065116100a2578063f11f77f911610071578063f11f77f9146101f4578063f2fde38b146101fd578063f887ea4014610210578063fc0c546a14610223578063fe6dcdba1461023657600080fd5b80638119c065146101c05780638da5cb5b146101c8578063c33fb877146101d9578063cc274b29146101e157600080fd5b80635ef53329116100de5780635ef533291461017f57806364b87a70146101925780636fb83a57146101a5578063715018a6146101b857600080fd5b80630445b66714610110578063144fa6d71461012c578063228cb733146101415780633fc8cef31461016c575b600080fd5b61011960065481565b6040519081526020015b60405180910390f35b61013f61013a36600461087e565b61023e565b005b600354610154906001600160a01b031681565b6040516001600160a01b039091168152602001610123565b600454610154906001600160a01b031681565b61013f61018d3660046108ae565b6102d6565b600554610154906001600160a01b031681565b61013f6101b336600461087e565b6102e3565b61013f61033b565b61013f61034f565b6000546001600160a01b0316610154565b61013f6104c5565b61013f6101ef3660046108ae565b6105f4565b61011960075481565b61013f61020b36600461087e565b610601565b600154610154906001600160a01b031681565b600254610154906001600160a01b031681565b61013f61067f565b6102466107d4565b600280546001600160a01b0319166001600160a01b0383811691821790925560015460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044015b6020604051808303816000875af11580156102ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d291906108c7565b5050565b6102de6107d4565b600755565b6102eb6107d4565b600580546001600160a01b0319166001600160a01b038381169182179092556004805460405163095ea7b360e01b815291820192909252600019602482015291169063095ea7b39060440161028f565b6103436107d4565b61034d600061082e565b565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc91906108e9565b60408051600180825281830190925291925060009190816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816103d7575050604080516060810182526002546001600160a01b039081168252600454166020820152600091810182905282519293509183919061044357610443610902565b60209081029190910101526001546001600160a01b0316636cc1ae13836000843061046f42601e610918565b6040518663ffffffff1660e01b815260040161048f95949392919061093f565b600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b505050505050565b60085460ff16151560000361034d576008805460ff191660011790556002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e91906108e9565b905060065481106105615761056161034f565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d391906108e9565b905060075481106105e6576105e661067f565b50506008805460ff19169055565b6105fc6107d4565b600655565b6106096107d4565b6001600160a01b0381166106735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61067c8161082e565b50565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f191906108e9565b6004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052929350919091169063a9059cbb906044016020604051808303816000875af115801561074e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077291906108c7565b50600554604051632800bf9f60e11b8152600481018390526001600160a01b03909116906350017f3e90602401600060405180830381600087803b1580156107b957600080fd5b505af11580156107cd573d6000803e3d6000fd5b5050505050565b6000546001600160a01b0316331461034d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561089057600080fd5b81356001600160a01b03811681146108a757600080fd5b9392505050565b6000602082840312156108c057600080fd5b5035919050565b6000602082840312156108d957600080fd5b815180151581146108a757600080fd5b6000602082840312156108fb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561093957634e487b7160e01b600052601160045260246000fd5b92915050565b600060a0820187835260208781850152604060a08186015282885180855260c087019150838a01945060005b818110156109a857855180516001600160a01b0390811685528682015116868501528401511515848401529484019460609092019160010161096b565b50506001600160a01b038816606087015293506109c492505050565b826080830152969550505050505056fea26469706673582212203cc125815cab469bdc44f53420f60711ce8f461595c8614096e5d326be90fcf664736f6c63430008140033000000000000000000000000c36cc0594106090bd13f3b4166a552994186a7fb000000000000000000000000b1f4e567f42a9bfa226c084d1a3c9544acedec7f
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638119c065116100a2578063f11f77f911610071578063f11f77f9146101f4578063f2fde38b146101fd578063f887ea4014610210578063fc0c546a14610223578063fe6dcdba1461023657600080fd5b80638119c065146101c05780638da5cb5b146101c8578063c33fb877146101d9578063cc274b29146101e157600080fd5b80635ef53329116100de5780635ef533291461017f57806364b87a70146101925780636fb83a57146101a5578063715018a6146101b857600080fd5b80630445b66714610110578063144fa6d71461012c578063228cb733146101415780633fc8cef31461016c575b600080fd5b61011960065481565b6040519081526020015b60405180910390f35b61013f61013a36600461087e565b61023e565b005b600354610154906001600160a01b031681565b6040516001600160a01b039091168152602001610123565b600454610154906001600160a01b031681565b61013f61018d3660046108ae565b6102d6565b600554610154906001600160a01b031681565b61013f6101b336600461087e565b6102e3565b61013f61033b565b61013f61034f565b6000546001600160a01b0316610154565b61013f6104c5565b61013f6101ef3660046108ae565b6105f4565b61011960075481565b61013f61020b36600461087e565b610601565b600154610154906001600160a01b031681565b600254610154906001600160a01b031681565b61013f61067f565b6102466107d4565b600280546001600160a01b0319166001600160a01b0383811691821790925560015460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044015b6020604051808303816000875af11580156102ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d291906108c7565b5050565b6102de6107d4565b600755565b6102eb6107d4565b600580546001600160a01b0319166001600160a01b038381169182179092556004805460405163095ea7b360e01b815291820192909252600019602482015291169063095ea7b39060440161028f565b6103436107d4565b61034d600061082e565b565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc91906108e9565b60408051600180825281830190925291925060009190816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816103d7575050604080516060810182526002546001600160a01b039081168252600454166020820152600091810182905282519293509183919061044357610443610902565b60209081029190910101526001546001600160a01b0316636cc1ae13836000843061046f42601e610918565b6040518663ffffffff1660e01b815260040161048f95949392919061093f565b600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b505050505050565b60085460ff16151560000361034d576008805460ff191660011790556002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e91906108e9565b905060065481106105615761056161034f565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d391906108e9565b905060075481106105e6576105e661067f565b50506008805460ff19169055565b6105fc6107d4565b600655565b6106096107d4565b6001600160a01b0381166106735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61067c8161082e565b50565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f191906108e9565b6004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052929350919091169063a9059cbb906044016020604051808303816000875af115801561074e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077291906108c7565b50600554604051632800bf9f60e11b8152600481018390526001600160a01b03909116906350017f3e90602401600060405180830381600087803b1580156107b957600080fd5b505af11580156107cd573d6000803e3d6000fd5b5050505050565b6000546001600160a01b0316331461034d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161066a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561089057600080fd5b81356001600160a01b03811681146108a757600080fd5b9392505050565b6000602082840312156108c057600080fd5b5035919050565b6000602082840312156108d957600080fd5b815180151581146108a757600080fd5b6000602082840312156108fb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561093957634e487b7160e01b600052601160045260246000fd5b92915050565b600060a0820187835260208781850152604060a08186015282885180855260c087019150838a01945060005b818110156109a857855180516001600160a01b0390811685528682015116868501528401511515848401529484019460609092019160010161096b565b50506001600160a01b038816606087015293506109c492505050565b826080830152969550505050505056fea26469706673582212203cc125815cab469bdc44f53420f60711ce8f461595c8614096e5d326be90fcf664736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in S
Multichain Portfolio | 35 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.