More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 920 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Zap In Token | 34624945 | 956 days ago | IN | 0 FTM | 0.17928536 | ||||
Zap In Token | 34624549 | 956 days ago | IN | 0 FTM | 0.17194623 | ||||
Zap In Token | 34610548 | 956 days ago | IN | 0 FTM | 0.07653713 | ||||
Native Zap In | 34581563 | 956 days ago | IN | 0 FTM | 0.07377931 | ||||
Native Zap In | 34581538 | 956 days ago | IN | 0 FTM | 0.08372404 | ||||
Zap In Token | 34568999 | 956 days ago | IN | 0 FTM | 0.12510341 | ||||
Native Zap In | 34566804 | 956 days ago | IN | 0 FTM | 0.10904191 | ||||
Zap In Token | 34565591 | 956 days ago | IN | 0 FTM | 0.20032484 | ||||
Native Zap In | 34564525 | 956 days ago | IN | 0 FTM | 0.10559081 | ||||
Zap In Token | 34564513 | 956 days ago | IN | 0 FTM | 0.07997369 | ||||
Native Zap In | 34564484 | 956 days ago | IN | 0 FTM | 0.08172934 | ||||
Zap In Token | 34563169 | 956 days ago | IN | 0 FTM | 0.0764831 | ||||
Zap In Token | 34563132 | 956 days ago | IN | 0 FTM | 0.06381797 | ||||
Zap In Token | 34562251 | 956 days ago | IN | 0 FTM | 0.04480102 | ||||
Zap In Token | 34561965 | 956 days ago | IN | 0 FTM | 0.04708502 | ||||
Zap In Token | 34560873 | 956 days ago | IN | 0 FTM | 0.05732131 | ||||
Zap In Token | 34560013 | 956 days ago | IN | 0 FTM | 0.11470982 | ||||
Zap In Token | 34559958 | 956 days ago | IN | 0 FTM | 0.11470709 | ||||
Zap In Token | 34557879 | 956 days ago | IN | 0 FTM | 0.04327295 | ||||
Zap In Token | 34556880 | 956 days ago | IN | 0 FTM | 0.05870819 | ||||
Native Zap In | 34555937 | 956 days ago | IN | 0 FTM | 0.05162954 | ||||
Zap In Token | 34554948 | 956 days ago | IN | 0 FTM | 0.07400015 | ||||
Zap In Token | 34554319 | 956 days ago | IN | 0 FTM | 0.13623626 | ||||
Zap In Token | 34552978 | 957 days ago | IN | 0 FTM | 0.07667378 | ||||
Zap In Token | 34548075 | 957 days ago | IN | 0 FTM | 0.03999672 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
33799481 | 965 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xb4A3f001...6A90d8620 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ShortZapper
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/IHyperswapRouter.sol"; import "./interfaces/IUniswapV2Pair.sol"; import "./interfaces/IUniswapV2Router.sol"; import "./interfaces/IVault.sol"; import "./lib/TransferHelper.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract ShortZapper is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ // @NATIVE - native token that is not a part of our zap-in LP address private NATIVE; struct LiquidityPair { address _token0; address _token1; uint256 _amountToken0; uint256 _amountToken1; uint256 _liqTokenAmt; } struct FunctionArgs { address _LP; address _in; address _out; address _recipient; address _routerAddr; address _token; uint256 _amount; uint256 _slippage; uint256 _otherAmt; uint256 _swapAmt; } mapping(address => mapping(address => address)) private intermediateTokenForRouter; mapping (address => bool) public NativeRouter; modifier whitelist(address route) { require(NativeRouter[route], "route not allowed"); _; } // Based address here constructor(address _NATIVE) Ownable() { NATIVE = _NATIVE; } /* ========== External Functions ========== */ receive() external payable {} function NativeToken() public view returns (address) { return NATIVE; } // @_in - Token we want to throw in // @amount - amount of our _in // @out - address of LP we are going to get function zapInToken(address _in, uint256 amount, address out, address routerAddr, address recipient, uint256 minAmountLp) external whitelist(routerAddr) { // From an ERC20 to an LP token, through specified router, going through base asset if necessary IERC20(_in).safeTransferFrom(msg.sender, address(this), amount); // we'll need this approval to add liquidity _approveTokenIfNeeded(_in, routerAddr); uint256 lpAmount =_swapTokenToLP(_in, amount, out, recipient, routerAddr); require (lpAmount >= minAmountLp, "lpAmt < minAmount quoted"); } // @_in - Token we want to throw in // @amount - amount of our _in // @out - address of LP we are going to get function estimateZapInToken(address _in, address out, address router, uint256 amount) public view whitelist(router) returns (uint256, uint256) { // get pairs for desired lp // check if we already have one of the assets if (_in == IUniswapV2Pair(out).token0() || _in == IUniswapV2Pair(out).token1()) { // if so, we're going to sell half of in for the other token we need // figure out which token we need, and approve address other = _in == IUniswapV2Pair(out).token0() ? IUniswapV2Pair(out).token1() : IUniswapV2Pair(out).token0(); // calculate amount of in to sell uint256 sellAmount = amount.div(2); // calculate amount of other token for potential lp uint256 otherAmount = _estimateSwap(_in, sellAmount, other, router); if (_in == IUniswapV2Pair(out).token0()) { return (sellAmount, otherAmount); } else { return (otherAmount, sellAmount); } } else { // go through native token, that's not in our LP, for highest liquidity uint256 nativeAmount = _in == NATIVE ? amount : _estimateSwap(_in, amount, NATIVE, router); return estimateZapIn(out, router, nativeAmount); } } function estimateZapIn(address LP, address router, uint256 amount) public view whitelist(router) returns (uint256, uint256) { uint256 zapAmount = amount.div(2); IUniswapV2Pair pair = IUniswapV2Pair(LP); address token0 = pair.token0(); address token1 = pair.token1(); if (token0 == NATIVE || token1 == NATIVE) { address token = token0 == NATIVE ? token1 : token0; uint256 tokenAmount = _estimateSwap(NATIVE, zapAmount, token, router); if (token0 == NATIVE) { return (zapAmount, tokenAmount); } else { return (tokenAmount, zapAmount); } } else { uint256 amountToken0 = _estimateSwap(NATIVE, zapAmount, token0, router); uint256 amountToken1 = _estimateSwap(NATIVE, zapAmount, token1, router); return (amountToken0, amountToken1); } } // from Native to an LP token through the specified router // @ out - LP we want to get out of this function nativeZapIn(uint256 amount, address out, address routerAddr, address recipient, uint256 minAmountLp) external payable whitelist (routerAddr) { IERC20(NATIVE).safeTransferFrom(msg.sender, address(this), amount); _approveTokenIfNeeded(NATIVE, routerAddr); uint256 amountLp =_swapNativeToLP(out, amount, recipient, routerAddr); require(amountLp >= minAmountLp, "lp amt < quoted lp amount"); } /* ========== Private Functions ========== */ function _approveTokenIfNeeded(address token, address router) private { if (IERC20(token).allowance(address(this), router) == 0) { IERC20(token).safeApprove(router, type(uint256).max); } } // @in - token we want to throw in // @amount - amount of our token // @out - LP we want to get function _swapTokenToLP(address _in, uint256 amount, address out, address recipient, address routerAddr) private returns (uint256) { FunctionArgs memory args; args._in = _in; args._amount = amount; args._out = out; args._recipient = recipient; args._routerAddr = routerAddr; LiquidityPair memory pair; if (args._in == IUniswapV2Pair(args._out).token0() || args._in == IUniswapV2Pair(args._out).token1()) { args._token = args._in == IUniswapV2Pair(args._out).token0() ? IUniswapV2Pair(args._out).token1() : IUniswapV2Pair(args._out).token0(); // calculate args._amount of _from to sell args._swapAmt = args._amount.div(2); args._otherAmt = _swap(args._in, args._swapAmt, args._token, address(this), args._routerAddr); _approveTokenIfNeeded(args._token, args._routerAddr); // execute swap (pair._amountToken0 , pair._amountToken1 , pair._liqTokenAmt) = IUniswapV2Router(args._routerAddr).addLiquidity(args._in, args._token, args._amount.sub(args._swapAmt),args._otherAmt, 0 , 0, args._recipient, block.timestamp); _dustDistribution(args._amount.sub(args._swapAmt), args._otherAmt, pair._amountToken0, pair._amountToken1, args._in, args._token, args._recipient); return pair._liqTokenAmt; } else { // go through native token for highest liquidity uint256 nativeAmount = _swapTokenForNative(args._in, args._amount, address(this), args._routerAddr); return _swapNativeToLP(args._out, nativeAmount, args._recipient, args._routerAddr); } } // @amount - amount of our native token // @out - LP we want to get function _swapNativeToLP(address out, uint256 amount, address recipient, address routerAddress) private returns (uint256) { IUniswapV2Pair pair = IUniswapV2Pair(out); address token0 = pair.token0(); address token1 = pair.token1(); uint256 liquidity; liquidity = _swapNativeToEqualTokensAndProvide(token0, token1, amount, routerAddress, recipient); return liquidity; } function _dustDistribution(uint256 token0, uint256 token1, uint256 amountToken0, uint256 amountToken1, address native, address token, address recipient) private { uint256 nativeDust = token0.sub(amountToken0); uint256 tokenDust = token1.sub(amountToken1); if (nativeDust > 0) { IERC20(native).safeTransfer(recipient, nativeDust); } if (tokenDust > 0) { IERC20(token).safeTransfer(recipient, tokenDust); } } // @token0 - swap Native to this , and provide this to create LP // @token1 - swap Native to this , and provide this to create LP // @amount - amount of native token function _swapNativeToEqualTokensAndProvide(address token0, address token1, uint256 amount, address routerAddress, address recipient) private returns (uint256) { FunctionArgs memory args; args._amount = amount; args._recipient = recipient; args._routerAddr = routerAddress; args._swapAmt = args._amount.div(2); LiquidityPair memory pair; pair._token0 = token0; pair._token1 = token1; IUniswapV2Router router = IUniswapV2Router(args._routerAddr); if (pair._token0 == NATIVE) { args._otherAmt= _swapNativeForToken(pair._token1, args._swapAmt, address(this), args._routerAddr); _approveTokenIfNeeded(pair._token0, args._routerAddr); _approveTokenIfNeeded(pair._token1, args._routerAddr); (pair._amountToken0, pair._amountToken1, pair._liqTokenAmt) = router.addLiquidity(pair._token0, pair._token1, args._swapAmt, args._otherAmt, 0, 0, args._recipient, block.timestamp); _dustDistribution(args._swapAmt, args._otherAmt, pair._amountToken0, pair._amountToken1, pair._token0, pair._token1, args._recipient); return pair._liqTokenAmt; } else { args._otherAmt = _swapNativeForToken(pair._token0, args._swapAmt, address(this), args._routerAddr); _approveTokenIfNeeded( pair._token0, args._routerAddr); _approveTokenIfNeeded( pair._token1, args._routerAddr); (pair._amountToken0, pair._amountToken1, pair._liqTokenAmt) = router.addLiquidity(pair._token0, pair._token1, args._otherAmt, args._amount.sub( args._swapAmt), 0, 0, args._recipient, block.timestamp); _dustDistribution(args._otherAmt, args._amount.sub( args._swapAmt), pair._amountToken0, pair._amountToken1, pair._token1, pair._token0, args._recipient); return pair._liqTokenAmt; } } // @token - swap Native to this token // @amount - amount of native token function _swapNativeForToken(address token, uint256 amount, address recipient, address routerAddr) private returns (uint256) { address[] memory path; IUniswapV2Router router = IUniswapV2Router(routerAddr); if (intermediateTokenForRouter[token][routerAddr] != address(0)) { path = new address[](3); path[0] = NATIVE; path[1] = intermediateTokenForRouter[token][routerAddr]; path[2] = token; } else { path = new address[](2); path[0] = NATIVE; path[1] = token; } uint256[] memory amounts = router.swapExactTokensForTokens(amount, 0, path, recipient, block.timestamp); return amounts[amounts.length - 1]; } // @token - swap this token to Native // @amount - amount of native token function _swapTokenForNative(address token, uint256 amount, address recipient, address routerAddr) private returns (uint256) { address[] memory path; IUniswapV2Router router = IUniswapV2Router(routerAddr); if (intermediateTokenForRouter[token][routerAddr] != address(0)) { path = new address[](3); path[0] = token; path[1] = intermediateTokenForRouter[token][routerAddr]; path[2] = NATIVE; } else { path = new address[](2); path[0] = token; path[1] = NATIVE; } uint256[] memory amounts = router.swapExactTokensForTokens(amount, 0, path, recipient, block.timestamp); return amounts[amounts.length - 1]; } // @_in - token we want to throw in // @amount - amount of our _in // @out - token we want to get out function _swap(address _in, uint256 amount, address out, address recipient, address routerAddr) private returns (uint256) { IUniswapV2Router router = IUniswapV2Router(routerAddr); address fromBridge = intermediateTokenForRouter[_in][routerAddr]; address toBridge = intermediateTokenForRouter[out][routerAddr]; address[] memory path; if (fromBridge != address(0) && toBridge != address(0)) { if (fromBridge != toBridge) { path = new address[](5); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; path[3] = toBridge; path[4] = out; } else { path = new address[](3); path[0] = _in; path[1] = fromBridge; path[2] = out; } } else if (fromBridge != address(0)) { if (out == NATIVE) { path = new address[](3); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; } else { path = new address[](4); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; path[3] = out; } } else if (toBridge != address(0)) { path = new address[](4); path[0] = _in; path[1] = NATIVE; path[2] = toBridge; path[3] = out; } else if (_in == NATIVE || out == NATIVE) { path = new address[](2); path[0] = _in; path[1] = out; } else { // Go through Native path = new address[](3); path[0] = _in; path[1] = NATIVE; path[2] = out; } uint256[] memory amounts = router.swapExactTokensForTokens(amount, 0, path, recipient, block.timestamp); return amounts[amounts.length - 1]; } // @_in - token we want to throw in // @amount - amount of our _in // @out - token we want to get out function _estimateSwap(address _in, uint256 amount, address out, address routerAddr) private view returns (uint256) { IUniswapV2Router router = IUniswapV2Router(routerAddr); address fromBridge = intermediateTokenForRouter[_in][routerAddr]; address toBridge = intermediateTokenForRouter[out][routerAddr]; address[] memory path; if (fromBridge != address(0) && toBridge != address(0)) { if (fromBridge != toBridge) { path = new address[](5); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; path[3] = toBridge; path[4] = out; } else { path = new address[](3); path[0] = _in; path[1] = fromBridge; path[2] = out; } } else if (fromBridge != address(0)) { if (out == NATIVE) { path = new address[](3); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; } else { path = new address[](4); path[0] = _in; path[1] = fromBridge; path[2] = NATIVE; path[3] = out; } } else if (toBridge != address(0)) { path = new address[](4); path[0] = _in; path[1] = NATIVE; path[2] = toBridge; path[3] = out; } else if (_in == NATIVE || out == NATIVE) { path = new address[](2); path[0] = _in; path[1] = out; } else { // Go through Native path = new address[](3); path[0] = _in; path[1] = NATIVE; path[2] = out; } uint256[] memory amounts = router.getAmountsOut(amount, path); return amounts[amounts.length - 1]; } /* ========== RESTRICTED FUNCTIONS ========== */ function setNativeToken(address _NATIVE) external onlyOwner { NATIVE = _NATIVE; } function setIntermediateTokenForRouter(address token, address router, address intermediateToken) external onlyOwner { intermediateTokenForRouter[token][router] = intermediateToken; } function setNativeRouter(address router) external onlyOwner { NativeRouter[router] = true; } function removeNativeRouter(address router) external onlyOwner { NativeRouter[router] = false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IHyperswapRouter { function factory() external pure returns (address); function WFTM() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityFTM( address token, uint amountTokenDesired, uint amountTokenMin, uint amountFTMMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountFTM, 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 removeLiquidityFTM( address token, uint liquidity, uint amountTokenMin, uint amountFTMMin, address to, uint deadline ) external returns (uint amountToken, uint amountFTM); 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 removeLiquidityFTMWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountFTMMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountFTM); 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 swapExactFTMForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactFTM(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForFTM(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapFTMForExactTokens(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: MIT pragma solidity ^0.8.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 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 (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); 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 (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Router { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IVault is IERC20 { function deposit(uint256 amount) external; function withdraw(uint256 shares) external; function want() external pure returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library TransferHelper { function safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function safeTransferETH(address to, uint value) internal { (bool success,) = to.call{value:value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^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 // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 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/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @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) { 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "optimizer": { "enabled": true, "runs": 50 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_NATIVE","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":[{"internalType":"address","name":"","type":"address"}],"name":"NativeRouter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NativeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"LP","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"estimateZapIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_in","type":"address"},{"internalType":"address","name":"out","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"estimateZapInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"out","type":"address"},{"internalType":"address","name":"routerAddr","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"minAmountLp","type":"uint256"}],"name":"nativeZapIn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"removeNativeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"intermediateToken","type":"address"}],"name":"setIntermediateTokenForRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"setNativeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_NATIVE","type":"address"}],"name":"setNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_in","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"out","type":"address"},{"internalType":"address","name":"routerAddr","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"minAmountLp","type":"uint256"}],"name":"zapInToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106100a65760003560e01c80634d6cd234146100b257806353b215ab146100d45780636da1e10214610119578063715018a614610139578063790cfa611461014e5780638da5cb5b146101615780638e8d81521461018e578063979adf20146101c3578063a73681ab146101e3578063c64b74dc14610201578063d9059f1b14610221578063e6e6a9e114610241578063f2fde38b1461026157600080fd5b366100ad57005b600080fd5b3480156100be57600080fd5b506100d26100cd366004612cc1565b610281565b005b3480156100e057600080fd5b506101046100ef366004612baa565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561012557600080fd5b506100d2610134366004612baa565b610349565b34801561014557600080fd5b506100d261039a565b6100d261015c366004612e31565b6103d5565b34801561016d57600080fd5b506101766104a2565b6040516001600160a01b039091168152602001610110565b34801561019a57600080fd5b506101ae6101a9366004612c2f565b6104b1565b60408051928352602083019190915201610110565b3480156101cf57600080fd5b506100d26101de366004612baa565b61088d565b3480156101ef57600080fd5b506001546001600160a01b0316610176565b34801561020d57600080fd5b506100d261021c366004612be4565b6108dd565b34801561022d57600080fd5b506101ae61023c366004612c80565b610949565b34801561024d57600080fd5b506100d261025c366004612baa565b610b7b565b34801561026d57600080fd5b506100d261027c366004612baa565b610bce565b6001600160a01b038316600090815260036020526040902054839060ff166102c45760405162461bcd60e51b81526004016102bb90612ffe565b60405180910390fd5b6102d96001600160a01b038816333089610c6e565b6102e38785610cdf565b60006102f28888888789610d7b565b90508281101561033f5760405162461bcd60e51b81526020600482015260186024820152771b1c105b5d080f081b5a5b905b5bdd5b9d081c5d5bdd195960421b60448201526064016102bb565b5050505050505050565b336103526104a2565b6001600160a01b0316146103785760405162461bcd60e51b81526004016102bb90612fc9565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336103a36104a2565b6001600160a01b0316146103c95760405162461bcd60e51b81526004016102bb90612fc9565b6103d36000611216565b565b6001600160a01b038316600090815260036020526040902054839060ff1661040f5760405162461bcd60e51b81526004016102bb90612ffe565b600154610427906001600160a01b0316333089610c6e565b60015461043d906001600160a01b031685610cdf565b600061044b86888688611266565b9050828110156104995760405162461bcd60e51b81526020600482015260196024820152781b1c08185b5d080f081c5d5bdd1959081b1c08185b5bdd5b9d603a1b60448201526064016102bb565b50505050505050565b6000546001600160a01b031690565b6001600160a01b0382166000908152600360205260408120548190849060ff166104ed5760405162461bcd60e51b81526004016102bb90612ffe565b856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561052657600080fd5b505afa15801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e9190612bc7565b6001600160a01b0316876001600160a01b031614806105fe5750856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b157600080fd5b505afa1580156105c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e99190612bc7565b6001600160a01b0316876001600160a01b0316145b15610837576000866001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561063e57600080fd5b505afa158015610652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106769190612bc7565b6001600160a01b0316886001600160a01b03161461070457866001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156106c757600080fd5b505afa1580156106db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ff9190612bc7565b610775565b866001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561073d57600080fd5b505afa158015610751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107759190612bc7565b90506000610784866002611372565b905060006107948a83858b611385565b9050886001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156107cf57600080fd5b505afa1580156107e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108079190612bc7565b6001600160a01b03168a6001600160a01b0316141561082c5790945092506108839050565b945092506108839050565b6001546000906001600160a01b0389811691161461086e5760015461086990899087906001600160a01b031689611385565b610870565b845b905061087d878783610949565b93509350505b5094509492505050565b336108966104a2565b6001600160a01b0316146108bc5760405162461bcd60e51b81526004016102bb90612fc9565b6001600160a01b03166000908152600360205260409020805460ff19169055565b336108e66104a2565b6001600160a01b03161461090c5760405162461bcd60e51b81526004016102bb90612fc9565b6001600160a01b03928316600090815260026020908152604080832094861683529390529190912080546001600160a01b03191691909216179055565b6001600160a01b0382166000908152600360205260408120548190849060ff166109855760405162461bcd60e51b81526004016102bb90612ffe565b6000610992856002611372565b905060008790506000816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156109d457600080fd5b505afa1580156109e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0c9190612bc7565b90506000826001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610a4957600080fd5b505afa158015610a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a819190612bc7565b6001549091506001600160a01b0383811691161480610aad57506001546001600160a01b038281169116145b15610b28576001546000906001600160a01b03848116911614610ad05782610ad2565b815b600154909150600090610af0906001600160a01b031687848e611385565b6001549091506001600160a01b0385811691161415610b1957949750939550610b729350505050565b9750939550610b729350505050565b600154600090610b43906001600160a01b031686858d611385565b600154909150600090610b61906001600160a01b031687858e611385565b919850909650610b72945050505050565b50935093915050565b33610b846104a2565b6001600160a01b031614610baa5760405162461bcd60e51b81526004016102bb90612fc9565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b33610bd76104a2565b6001600160a01b031614610bfd5760405162461bcd60e51b81526004016102bb90612fc9565b6001600160a01b038116610c625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102bb565b610c6b81611216565b50565b6040516001600160a01b0380851660248301528316604482015260648101829052610cd99085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a08565b50505050565b604051636eb1769f60e11b81526001600160a01b0383169063dd62ed3e90610d0d9030908590600401612f1a565b60206040518083038186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d9190612e18565b610d7757610d776001600160a01b03831682600019611adf565b5050565b6000610d85612b15565b6001600160a01b03808816602083015260c082018790528581166040830152848116606083015283166080820152610dbb612b69565b81604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610df857600080fd5b505afa158015610e0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e309190612bc7565b6001600160a01b031682602001516001600160a01b03161480610edc575081604001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610e8b57600080fd5b505afa158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec39190612bc7565b6001600160a01b031682602001516001600160a01b0316145b156111d35781604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1e57600080fd5b505afa158015610f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f569190612bc7565b6001600160a01b031682602001516001600160a01b031614610fec5781604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610faf57600080fd5b505afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe79190612bc7565b611061565b81604001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561102957600080fd5b505afa15801561103d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110619190612bc7565b6001600160a01b031660a083015260c082015161107f906002611372565b6101208301819052602083015160a084015160808501516110a39391903090611bf1565b61010083015260a082015160808301516110bd9190610cdf565b81608001516001600160a01b031663e8e3370083602001518460a001516110f68661012001518760c0015161227d90919063ffffffff16565b8661010001516000808960600151426040518963ffffffff1660e01b8152600401611128989796959493929190612f34565b606060405180830381600087803b15801561114257600080fd5b505af1158015611156573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117a9190612e8c565b60808401526060830152604082015261012082015160c08301516111c6916111a2919061227d565b8361010001518360400151846060015186602001518760a001518860600151612289565b60800151915061120d9050565b60006111ed83602001518460c001513086608001516122e4565b905061120783604001518285606001518660800151611266565b93505050505b95945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808590506000816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156112a757600080fd5b505afa1580156112bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112df9190612bc7565b90506000826001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561131c57600080fd5b505afa158015611330573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113549190612bc7565b9050600061136583838a898b612538565b9998505050505050505050565b600061137e828461307e565b9392505050565b6001600160a01b038085166000908152600260208181526040808420858716808652908352818520548887168652938352818520908552909152822054919284929181169116606082158015906113e457506001600160a01b03821615155b156115c657816001600160a01b0316836001600160a01b0316146115295760408051600580825260c08201909252906020820160a0803683370190505090508881600081518110611437576114376130f1565b60200260200101906001600160a01b031690816001600160a01b031681525050828160018151811061146b5761146b6130f1565b6001600160a01b03928316602091820292909201015260015482519116908290600290811061149c5761149c6130f1565b60200260200101906001600160a01b031690816001600160a01b03168152505081816003815181106114d0576114d06130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508681600481518110611504576115046130f1565b60200260200101906001600160a01b031690816001600160a01b03168152505061194b565b604080516003808252608082019092529060208201606080368337019050509050888160008151811061155e5761155e6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611592576115926130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508681600281518110611504576115046130f1565b6001600160a01b03831615611753576001546001600160a01b0388811691161415611685576040805160038082526080820190925290602082016060803683370190505090508881600081518110611620576116206130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611654576116546130f1565b6001600160a01b039283166020918202929092010152600154825191169082906002908110611504576115046130f1565b60408051600480825260a08201909252906020820160808036833701905050905088816000815181106116ba576116ba6130f1565b60200260200101906001600160a01b031690816001600160a01b03168152505082816001815181106116ee576116ee6130f1565b6001600160a01b03928316602091820292909201015260015482519116908290600290811061171f5761171f6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508681600381518110611504576115046130f1565b6001600160a01b038216156117fb5760408051600480825260a0820190925290602082016080803683370190505090508881600081518110611797576117976130f1565b6001600160a01b03928316602091820292909201015260018054835192169183919081106117c7576117c76130f1565b60200260200101906001600160a01b031690816001600160a01b031681525050818160028151811061171f5761171f6130f1565b6001546001600160a01b038a81169116148061182457506001546001600160a01b038881169116145b15611891576040805160028082526060820183529091602083019080368337019050509050888160008151811061185d5761185d6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508681600181518110611504576115046130f1565b60408051600380825260808201909252906020820160608036833701905050905088816000815181106118c6576118c66130f1565b6001600160a01b03928316602091820292909201015260018054835192169183919081106118f6576118f66130f1565b60200260200101906001600160a01b031690816001600160a01b031681525050868160028151811061192a5761192a6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250505b60405163d06ca61f60e01b81526000906001600160a01b0386169063d06ca61f9061197c908c908690600401613029565b60006040518083038186803b15801561199457600080fd5b505afa1580156119a8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119d09190810190612d31565b905080600182516119e191906130a0565b815181106119f1576119f16130f1565b602002602001015195505050505050949350505050565b6000611a5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128149092919063ffffffff16565b805190915015611ada5780806020019051810190611a7b9190612df6565b611ada5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102bb565b505050565b801580611b675750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611b159030908690600401612f1a565b60206040518083038186803b158015611b2d57600080fd5b505afa158015611b41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b659190612e18565b155b611bd25760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102bb565b611ada8363095ea7b360e01b8484604051602401610ca2929190612f7d565b6001600160a01b03808616600090815260026020818152604080842085871680865290835281852054898716865293835281852090855290915282205491928492918116911660608215801590611c5057506001600160a01b03821615155b15611e3257816001600160a01b0316836001600160a01b031614611d955760408051600580825260c08201909252906020820160a0803683370190505090508981600081518110611ca357611ca36130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611cd757611cd76130f1565b6001600160a01b039283166020918202929092010152600154825191169082906002908110611d0857611d086130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508181600381518110611d3c57611d3c6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508781600481518110611d7057611d706130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250506121b7565b6040805160038082526080820190925290602082016060803683370190505090508981600081518110611dca57611dca6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611dfe57611dfe6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508781600281518110611d7057611d706130f1565b6001600160a01b03831615611fbf576001546001600160a01b0389811691161415611ef1576040805160038082526080820190925290602082016060803683370190505090508981600081518110611e8c57611e8c6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611ec057611ec06130f1565b6001600160a01b039283166020918202929092010152600154825191169082906002908110611d7057611d706130f1565b60408051600480825260a0820190925290602082016080803683370190505090508981600081518110611f2657611f266130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110611f5a57611f5a6130f1565b6001600160a01b039283166020918202929092010152600154825191169082906002908110611f8b57611f8b6130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508781600381518110611d7057611d706130f1565b6001600160a01b038216156120675760408051600480825260a0820190925290602082016080803683370190505090508981600081518110612003576120036130f1565b6001600160a01b0392831660209182029290920101526001805483519216918391908110612033576120336130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508181600281518110611f8b57611f8b6130f1565b6001546001600160a01b038b81169116148061209057506001546001600160a01b038981169116145b156120fd57604080516002808252606082018352909160208301908036833701905050905089816000815181106120c9576120c96130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508781600181518110611d7057611d706130f1565b6040805160038082526080820190925290602082016060803683370190505090508981600081518110612132576121326130f1565b6001600160a01b0392831660209182029290920101526001805483519216918391908110612162576121626130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508781600281518110612196576121966130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040516338ed173960e01b81526000906001600160a01b038616906338ed1739906121ee908d90859087908e904290600401613042565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122449190810190612d31565b9050806001825161225591906130a0565b81518110612265576122656130f1565b60200260200101519550505050505095945050505050565b600061137e82846130a0565b6000612295888761227d565b905060006122a3888761227d565b905081156122bf576122bf6001600160a01b038616848461282b565b80156122d9576122d96001600160a01b038516848361282b565b505050505050505050565b6001600160a01b03848116600090815260026020908152604080832084861684529091528120549091606091849116156123f057604080516003808252608082019092529060208201606080368337019050509150868260008151811061234d5761234d6130f1565b6001600160a01b0392831660209182029290920181019190915288821660009081526002825260408082208885168352909252205483519116908390600190811061239a5761239a6130f1565b6001600160a01b0392831660209182029290920101526001548351911690839060029081106123cb576123cb6130f1565b60200260200101906001600160a01b031690816001600160a01b031681525050612475565b60408051600280825260608201835290916020830190803683370190505091508682600081518110612424576124246130f1565b6001600160a01b0392831660209182029290920101526001805484519216918491908110612454576124546130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040516338ed173960e01b81526000906001600160a01b038316906338ed1739906124ac908a90859088908c904290600401613042565b600060405180830381600087803b1580156124c657600080fd5b505af11580156124da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125029190810190612d31565b9050806001825161251391906130a0565b81518110612523576125236130f1565b60200260200101519350505050949350505050565b6000612542612b15565b60c081018590526001600160a01b0380841660608301528416608082015261256b856002611372565b610120820152612579612b69565b6001600160a01b038089168083528882166020840152608084015160015490921614156126cc576125b9826020015184610120015130866080015161284a565b610100840152815160808401516125d09190610cdf565b6125e282602001518460800151610cdf565b806001600160a01b031663e8e33700836000015184602001518661012001518761010001516000808a60600151426040518963ffffffff1660e01b8152600401612633989796959493929190612f34565b606060405180830381600087803b15801561264d57600080fd5b505af1158015612661573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126859190612e8c565b608085015260608085018290526040850183905261012086015161010087015186516020880151938901516126be969395929490612289565b5060800151915061120d9050565b6126e5826000015184610120015130866080015161284a565b610100840152815160808401516126fc9190610cdf565b61270e82602001518460800151610cdf565b806001600160a01b031663e8e33700836000015184602001518661010001516127498861012001518960c0015161227d90919063ffffffff16565b6000808a60600151426040518963ffffffff1660e01b8152600401612775989796959493929190612f34565b606060405180830381600087803b15801561278f57600080fd5b505af11580156127a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c79190612e8c565b60808501526060840152604083015261010083015161012084015160c08501516126be92916127f6919061227d565b84604001518560600151866020015187600001518960600151612289565b606061282384846000856129b4565b949350505050565b611ada8363a9059cbb60e01b8484604051602401610ca2929190612f7d565b6001600160a01b038481166000908152600260209081526040808320848616845290915281205490916060918491161561294057604080516003808252608082019092529060208201606080368337505060015482519294506001600160a01b0316918491506000906128bf576128bf6130f1565b6001600160a01b0392831660209182029290920181019190915288821660009081526002825260408082208885168352909252205483519116908390600190811061290c5761290c6130f1565b60200260200101906001600160a01b031690816001600160a01b03168152505086826002815181106123cb576123cb6130f1565b6040805160028082526060820183529091602083019080368337505060015482519294506001600160a01b031691849150600090612980576129806130f1565b60200260200101906001600160a01b031690816001600160a01b0316815250508682600181518110612454576124546130f1565b606082471015612a155760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102bb565b843b612a635760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102bb565b600080866001600160a01b03168587604051612a7f9190612efe565b60006040518083038185875af1925050503d8060008114612abc576040519150601f19603f3d011682016040523d82523d6000602084013e612ac1565b606091505b5091509150612ad1828286612adc565b979650505050505050565b60608315612aeb57508161137e565b825115612afb5782518084602001fd5b8160405162461bcd60e51b81526004016102bb9190612f96565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b6040518060a0016040528060006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001600081525090565b600060208284031215612bbc57600080fd5b813561137e8161311d565b600060208284031215612bd957600080fd5b815161137e8161311d565b600080600060608486031215612bf957600080fd5b8335612c048161311d565b92506020840135612c148161311d565b91506040840135612c248161311d565b809150509250925092565b60008060008060808587031215612c4557600080fd5b8435612c508161311d565b93506020850135612c608161311d565b92506040850135612c708161311d565b9396929550929360600135925050565b600080600060608486031215612c9557600080fd5b8335612ca08161311d565b92506020840135612cb08161311d565b929592945050506040919091013590565b60008060008060008060c08789031215612cda57600080fd5b8635612ce58161311d565b9550602087013594506040870135612cfc8161311d565b93506060870135612d0c8161311d565b92506080870135612d1c8161311d565b8092505060a087013590509295509295509295565b60006020808385031215612d4457600080fd5b825167ffffffffffffffff80821115612d5c57600080fd5b818501915085601f830112612d7057600080fd5b815181811115612d8257612d82613107565b8060051b604051601f19603f83011681018181108582111715612da757612da7613107565b604052828152858101935084860182860187018a1015612dc657600080fd5b600095505b83861015612de9578051855260019590950194938601938601612dcb565b5098975050505050505050565b600060208284031215612e0857600080fd5b8151801515811461137e57600080fd5b600060208284031215612e2a57600080fd5b5051919050565b600080600080600060a08688031215612e4957600080fd5b853594506020860135612e5b8161311d565b93506040860135612e6b8161311d565b92506060860135612e7b8161311d565b949793965091946080013592915050565b600080600060608486031215612ea157600080fd5b8351925060208401519150604084015190509250925092565b600081518084526020808501945080840160005b83811015612ef35781516001600160a01b031687529582019590820190600101612ece565b509495945050505050565b60008251612f108184602087016130c5565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039889168152968816602088015260408701959095526060860193909352608085019190915260a084015290921660c082015260e08101919091526101000190565b6001600160a01b03929092168252602082015260400190565b6020815260008251806020840152612fb58160408501602087016130c5565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152701c9bdd5d19481b9bdd08185b1b1bddd959607a1b604082015260600190565b8281526040602082015260006128236040830184612eba565b85815284602082015260a06040820152600061306160a0830186612eba565b6001600160a01b0394909416606083015250608001529392505050565b60008261309b57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156130c057634e487b7160e01b600052601160045260246000fd5b500390565b60005b838110156130e05781810151838201526020016130c8565b83811115610cd95750506000910152565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c6b57600080fdfea26469706673582212208393891b1781d80c50b4ff00131a873fbb2fefbd81e98768f518e5f7ed2931cf64736f6c63430008070033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.