More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 81 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Zap Eth In | 12612529 | 1361 days ago | IN | 50 ETH | 0.00349597 | ||||
Zap Eth In | 12601696 | 1363 days ago | IN | 50 ETH | 0.01111598 | ||||
Zap Eth In | 12285153 | 1412 days ago | IN | 35 ETH | 0.04298277 | ||||
Zap Eth In | 12246413 | 1418 days ago | IN | 5 ETH | 0.01824825 | ||||
Zap Eth In | 12097935 | 1441 days ago | IN | 2 ETH | 0.03650923 | ||||
Zap Eth In | 11960053 | 1462 days ago | IN | 76.31 ETH | 0.03494533 | ||||
Zap Eth In | 11959116 | 1462 days ago | IN | 50 ETH | 0.01852707 | ||||
Zap Eth In | 11951819 | 1463 days ago | IN | 0.05 ETH | 0.02588341 | ||||
Zap Eth In | 11945366 | 1464 days ago | IN | 6 ETH | 0.02179656 | ||||
Zap Eth In | 11939453 | 1465 days ago | IN | 2 ETH | 0.02475127 | ||||
Zap Eth In | 11937030 | 1466 days ago | IN | 90 ETH | 0.02740883 | ||||
Zap Eth Out | 11933541 | 1466 days ago | IN | 0 ETH | 0.02709798 | ||||
Zap Eth In | 11932617 | 1466 days ago | IN | 15 ETH | 0.02626836 | ||||
Zap Eth In | 11930939 | 1467 days ago | IN | 21 ETH | 0.03324902 | ||||
Zap Eth In | 11897438 | 1472 days ago | IN | 21.49262956 ETH | 0.03326688 | ||||
Zap Eth In | 11885162 | 1474 days ago | IN | 1 ETH | 0.03121775 | ||||
Zap Eth In | 11884125 | 1474 days ago | IN | 0.5 ETH | 0.03363771 | ||||
Zap Eth In | 11875668 | 1475 days ago | IN | 20 ETH | 0.04837462 | ||||
Zap Eth In | 11875658 | 1475 days ago | IN | 20 ETH | 0.04744705 | ||||
Zap Eth In | 11874537 | 1475 days ago | IN | 20 ETH | 0.03171361 | ||||
Zap Eth In | 11873987 | 1475 days ago | IN | 12 ETH | 0.02531759 | ||||
Zap Eth In | 11870081 | 1476 days ago | IN | 30.5 ETH | 0.02961629 | ||||
Zap Eth In | 11853571 | 1478 days ago | IN | 11 ETH | 0.02776446 | ||||
Zap Eth In | 11840696 | 1480 days ago | IN | 2 ETH | 0.04231167 | ||||
Zap Eth In | 11824208 | 1483 days ago | IN | 25 ETH | 0.04540764 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12612529 | 1361 days ago | 25 ETH | ||||
12612529 | 1361 days ago | 25 ETH | ||||
12601696 | 1363 days ago | 25 ETH | ||||
12601696 | 1363 days ago | 25 ETH | ||||
12285153 | 1412 days ago | 35 ETH | ||||
12246413 | 1418 days ago | 5 ETH | ||||
12097935 | 1441 days ago | 2 ETH | ||||
11960053 | 1462 days ago | 76.31 ETH | ||||
11959116 | 1462 days ago | 50 ETH | ||||
11951819 | 1463 days ago | 0.05 ETH | ||||
11945366 | 1464 days ago | 6 ETH | ||||
11939453 | 1465 days ago | 2 ETH | ||||
11937030 | 1466 days ago | 90 ETH | ||||
11933541 | 1466 days ago | 5.14971933 ETH | ||||
11933541 | 1466 days ago | 5.14971933 ETH | ||||
11932617 | 1466 days ago | 15 ETH | ||||
11930939 | 1467 days ago | 21 ETH | ||||
11897438 | 1472 days ago | 21.49262956 ETH | ||||
11885162 | 1474 days ago | 1 ETH | ||||
11884125 | 1474 days ago | 0.5 ETH | ||||
11875668 | 1475 days ago | 20 ETH | ||||
11875658 | 1475 days ago | 20 ETH | ||||
11874537 | 1475 days ago | 20 ETH | ||||
11873987 | 1475 days ago | 12 ETH | ||||
11870081 | 1476 days ago | 30.5 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ZapSteth
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-18 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Part: ICurveFi interface ICurveFi { function get_virtual_price() external view returns (uint256); function add_liquidity( // sBTC pool uint256[3] calldata amounts, uint256 min_mint_amount ) external; function add_liquidity( // bUSD pool uint256[4] calldata amounts, uint256 min_mint_amount ) external; function add_liquidity( // stETH pool uint256[2] calldata amounts, uint256 min_mint_amount ) external payable; function remove_liquidity_imbalance(uint256[4] calldata amounts, uint256 max_burn_amount) external; function remove_liquidity(uint256 _amount, uint256[4] calldata amounts) external; function remove_liquidity_one_coin( uint256 _token_amount, int128 i, uint256 min_amount ) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external payable; function balances(int128) external view returns (uint256); function get_dy( int128 from, int128 to, uint256 _from_amount ) external view returns (uint256); function calc_token_amount( uint256[2] calldata amounts, bool is_deposit) external view returns (uint256); } // Part: OpenZeppelin/[email protected]/Address /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: OpenZeppelin/[email protected]/Context /* * @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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Part: OpenZeppelin/[email protected]/IERC20 /** * @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); } // Part: OpenZeppelin/[email protected]/Math /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // Part: OpenZeppelin/[email protected]/SafeMath /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Part: ISteth interface ISteth is IERC20 { function submit(address) external payable returns (uint256); } // Part: IYVault interface IYVault is IERC20 { function deposit(uint256 amount, address recipient) external; function withdraw() external; } // Part: OpenZeppelin/[email protected]/Ownable /** * @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. */ 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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Part: OpenZeppelin/[email protected]/SafeERC20 /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: ZapSteth.sol contract ZapSteth is Ownable { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; IYVault public yVault = IYVault(address(0xdCD90C7f6324cfa40d7169ef80b12031770B4325)); ISteth public stETH = ISteth(address(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84)); //slippage allowance is out of 1000. 20 is 2% ICurveFi public StableSwapSTETH = ICurveFi(address(0xDC24316b9AE028F1497c275EB9192a3Ea0f67022)); IERC20 public want = IERC20(address(0x06325440D014e39736583c165C2963BA99fAf14E)); uint256 public constant DEFAULT_SLIPPAGE = 50; bool private _noReentry = false; constructor() public Ownable() { want.safeApprove(address(yVault), uint256(-1)); want.safeApprove(address(StableSwapSTETH), uint256(-1)); stETH.approve(address(StableSwapSTETH), uint256(-1)); } //we get eth receive() external payable { if(_noReentry){ return; } _zapEthIn(DEFAULT_SLIPPAGE); } function updateVaultAddress(address _vault) external onlyOwner { yVault = IYVault(_vault); want.safeApprove(_vault, uint256(-1)); } function zapEthIn(uint256 slippageAllowance) external payable{ if(_noReentry){ return; } _zapEthIn(slippageAllowance); } function _zapEthIn(uint256 slippageAllowance) internal { uint256 balanceBegin = address(this).balance; if(balanceBegin < 2) return; uint256 halfBal = balanceBegin.div(2); //test if we should buy instead of mint uint256 out = StableSwapSTETH.get_dy(0,1,halfBal); if(out < halfBal){ stETH.submit{value: halfBal}(owner()); } uint256 balanceMid = address(this).balance; uint256 balance2 = stETH.balanceOf(address(this)); StableSwapSTETH.add_liquidity{value: balanceMid}([balanceMid, balance2], 0); uint256 outAmount = want.balanceOf(address(this)); require(outAmount.mul(slippageAllowance.add(10000)).div(10000) >= balanceBegin, "TOO MUCH SLIPPAGE"); yVault.deposit(outAmount, msg.sender); } function zapStEthIn(uint256 stEthAmount, uint256 slippageAllowance) external { require(stEthAmount != 0, "0 stETH"); stETH.transferFrom(msg.sender, address(this), stEthAmount); uint256 balanceBegin = stETH.balanceOf(address(this)); require(balanceBegin >= stEthAmount, "NOT ALL stETH RECEIVED"); StableSwapSTETH.add_liquidity([0, balanceBegin], 0); uint256 outAmount = want.balanceOf(address(this)); require(outAmount.mul(slippageAllowance.add(10000)).div(10000) >= balanceBegin, "TOO MUCH SLIPPAGE"); yVault.deposit(outAmount, msg.sender); } function zapEthOut(uint256 lpTokenAmount, uint256 slippageAllowance) external { _zapOut(lpTokenAmount, slippageAllowance, 0); } function zapStEthOut(uint256 lpTokenAmount, uint256 slippageAllowance) external { _zapOut(lpTokenAmount, slippageAllowance, 1); } //There should never be any tokens in this contract function rescueTokens(address token, uint256 amount) external onlyOwner { if(token == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)){ amount = Math.min(address(this).balance, amount); msg.sender.transfer(amount); }else{ IERC20 want = IERC20(token); amount = Math.min(want.balanceOf(address(this)), amount); want.safeTransfer(msg.sender, amount); } } function _zapOut(uint256 lpTokenAmount, uint256 slippageAllowance, int128 zero_if_eth) internal { require(yVault.balanceOf(msg.sender) >= lpTokenAmount, "NOT ENOUGH BALANCE"); yVault.transferFrom(msg.sender, address(this), lpTokenAmount); yVault.withdraw(); uint256 balance = want.balanceOf(address(this)); require(balance > 0, "no balance"); _noReentry = true; StableSwapSTETH.remove_liquidity_one_coin(balance, zero_if_eth, 0); _noReentry = false; uint256 endBalance; if(zero_if_eth == 0){ endBalance = address(this).balance; msg.sender.transfer(endBalance); }else{ endBalance = stETH.balanceOf(address(this)); stETH.transfer(msg.sender, endBalance); } require(endBalance.mul(slippageAllowance.add(10000)).div(10000) >= balance, "TOO MUCH SLIPPAGE"); uint256 leftover = yVault.balanceOf(address(this)); if(leftover >0){ yVault.transfer(msg.sender, endBalance); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"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":"DEFAULT_SLIPPAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"StableSwapSTETH","outputs":[{"internalType":"contract ICurveFi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stETH","outputs":[{"internalType":"contract ISteth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"updateVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yVault","outputs":[{"internalType":"contract IYVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"slippageAllowance","type":"uint256"}],"name":"zapEthIn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"},{"internalType":"uint256","name":"slippageAllowance","type":"uint256"}],"name":"zapEthOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stEthAmount","type":"uint256"},{"internalType":"uint256","name":"slippageAllowance","type":"uint256"}],"name":"zapStEthIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"},{"internalType":"uint256","name":"slippageAllowance","type":"uint256"}],"name":"zapStEthOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673dcd90c7f6324cfa40d7169ef80b12031770b43251790915560028054821673ae7ab96520de3a18e5e111b5eaab095312d7fe8417905560038054821673dc24316b9ae028f1497c275eb9192a3ea0f670221790556004805460ff60a01b1992167306325440d014e39736583c165c2963ba99faf14e179190911690553480156200009e57600080fd5b506000620000ab620001e6565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060015460045462000122916001600160a01b039182169116600019620001ea602090811b62000c4a17901c565b6003546004546200014f916001600160a01b039182169116600019620001ea602090811b62000c4a17901c565b60025460035460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926200018992911690600019906004016200053c565b602060405180830381600087803b158015620001a457600080fd5b505af1158015620001b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001df9190620004c2565b506200069b565b3390565b801580620002795750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9062000223903090869060040162000522565b60206040518083038186803b1580156200023c57600080fd5b505afa15801562000251573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002779190620004eb565b155b620002a15760405162461bcd60e51b815260040162000298906200060b565b60405180910390fd5b620002fc8363095ea7b360e01b8484604051602401620002c39291906200053c565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b03938416179052906200030116565b505050565b60606200035d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200039d60201b62000d44179092919060201c565b805190915015620002fc57808060200190518101906200037e9190620004c2565b620002fc5760405162461bcd60e51b81526004016200029890620005c1565b6060620003ae8484600085620003b6565b949350505050565b6060620003c38562000488565b620003e25760405162461bcd60e51b815260040162000298906200058a565b60006060866001600160a01b0316858760405162000401919062000504565b60006040518083038185875af1925050503d806000811462000440576040519150601f19603f3d011682016040523d82523d6000602084013e62000445565b606091505b509150915081156200045b579150620003ae9050565b8051156200046c5780518082602001fd5b8360405162461bcd60e51b815260040162000298919062000555565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590620003ae575050151592915050565b600060208284031215620004d4578081fd5b81518015158114620004e4578182fd5b9392505050565b600060208284031215620004fd578081fd5b5051919050565b600082516200051881846020870162000668565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b60006020825282518060208401526200057681604085016020870162000668565b601f01601f19169190910160400192915050565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60005b83811015620006855781810151838201526020016200066b565b8381111562000695576000848401525b50505050565b611a5b80620006ab6000396000f3fe6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063b2a9cd8911610059578063b2a9cd891461022f578063c1fe3e4814610242578063d2de2f8514610257578063f2fde38b1461027757610109565b80638da5cb5b146101d857806393d56971146101ed578063a87985101461020d57610109565b806357376198116100bb578063573761981461016e578063715018a61461018e57806379cec260146101a3578063801492d7146101c357610109565b80631f1fcd511461010e57806333303f8e146101395780633c59e8481461014e57610109565b3661010957600454600160a01b900460ff16156100fd57610107565b6101076032610297565b005b600080fd5b34801561011a57600080fd5b5061012361060d565b6040516101309190611632565b60405180910390f35b34801561014557600080fd5b5061012361061c565b34801561015a57600080fd5b506101076101693660046115f5565b61062b565b34801561017a57600080fd5b5061010761018936600461157b565b610907565b34801561019a57600080fd5b50610107610a45565b3480156101af57600080fd5b506101076101be3660046115f5565b610ac4565b3480156101cf57600080fd5b50610123610ad0565b3480156101e457600080fd5b50610123610adf565b3480156101f957600080fd5b506101076102083660046115f5565b610aee565b34801561021957600080fd5b50610222610afa565b60405161013091906119bc565b61010761023d3660046115c5565b610aff565b34801561024e57600080fd5b50610123610b1f565b34801561026357600080fd5b50610107610272366004611560565b610b2e565b34801561028357600080fd5b50610107610292366004611560565b610b94565b4760028110156102a7575061060a565b60006102b4826002610d5b565b600354604051635e0d443f60e01b81529192506000916001600160a01b0390911690635e0d443f906102ef90849060019087906004016116d5565b60206040518083038186803b15801561030757600080fd5b505afa15801561031b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033f91906115dd565b9050818110156103d3576002546001600160a01b031663a1903eab83610363610adf565b6040518363ffffffff1660e01b815260040161037f9190611632565b6020604051808303818588803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103d191906115dd565b505b6002546040516370a0823160e01b815247916000916001600160a01b03909116906370a0823190610408903090600401611632565b60206040518083038186803b15801561042057600080fd5b505afa158015610434573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045891906115dd565b600354604080518082018252858152602081018490529051630b4c7e4d60e01b81529293506001600160a01b0390911691630b4c7e4d9185916104a1919060009060040161169d565b6000604051808303818588803b1580156104ba57600080fd5b505af11580156104ce573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600095506001600160a01b0390911693506370a08231925061050591309101611632565b60206040518083038186803b15801561051d57600080fd5b505afa158015610531573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055591906115dd565b90508561057861271061057261056b8b83610da6565b8590610dcb565b90610d5b565b101561059f5760405162461bcd60e51b815260040161059690611756565b60405180910390fd5b600154604051636e553f6560e01b81526001600160a01b0390911690636e553f65906105d190849033906004016119c5565b600060405180830381600087803b1580156105eb57600080fd5b505af11580156105ff573d6000803e3d6000fd5b505050505050505050505b50565b6004546001600160a01b031681565b6001546001600160a01b031681565b816106485760405162461bcd60e51b8152600401610596906118fb565b6002546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061067c90339030908790600401611646565b602060405180830381600087803b15801561069657600080fd5b505af11580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce91906115a5565b506002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610700903090600401611632565b60206040518083038186803b15801561071857600080fd5b505afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906115dd565b9050828110156107725760405162461bcd60e51b815260040161059690611726565b6003546040805180820182526000808252602082018590529151630b4c7e4d60e01b81526001600160a01b0390931692630b4c7e4d926107b5929160040161169d565b600060405180830381600087803b1580156107cf57600080fd5b505af11580156107e3573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600094506001600160a01b0390911692506370a082319161081991309101611632565b60206040518083038186803b15801561083157600080fd5b505afa158015610845573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086991906115dd565b90508161087f61271061057261056b8783610da6565b101561089d5760405162461bcd60e51b815260040161059690611756565b600154604051636e553f6560e01b81526001600160a01b0390911690636e553f65906108cf90849033906004016119c5565b600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b5050505050505050565b61090f610e05565b6000546001600160a01b0390811691161461093c5760405162461bcd60e51b81526004016105969061188f565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156109a15761096b4782610e09565b604051909150339082156108fc029083906000818181858888f1935050505015801561099b573d6000803e3d6000fd5b50610a41565b6040516370a0823160e01b81528290610a29906001600160a01b038316906370a08231906109d3903090600401611632565b60206040518083038186803b1580156109eb57600080fd5b505afa1580156109ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2391906115dd565b83610e09565b9150610a3f6001600160a01b0382163384610e1f565b505b5050565b610a4d610e05565b6000546001600160a01b03908116911614610a7a5760405162461bcd60e51b81526004016105969061188f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610a4182826001610e3e565b6003546001600160a01b031681565b6000546001600160a01b031690565b610a4182826000610e3e565b603281565b600454600160a01b900460ff1615610b165761060a565b61060a81610297565b6002546001600160a01b031681565b610b36610e05565b6000546001600160a01b03908116911614610b635760405162461bcd60e51b81526004016105969061188f565b600180546001600160a01b0319166001600160a01b038381169190911790915560045461060a911682600019610c4a565b610b9c610e05565b6000546001600160a01b03908116911614610bc95760405162461bcd60e51b81526004016105969061188f565b6001600160a01b038116610bef5760405162461bcd60e51b815260040161059690611781565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b801580610cd25750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90610c809030908690600401611683565b60206040518083038186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd091906115dd565b155b610cee5760405162461bcd60e51b815260040161059690611966565b610a3f8363095ea7b360e01b8484604051602401610d0d92919061166a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611386565b6060610d538484600085611415565b949350505050565b6000610d9d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114d9565b90505b92915050565b600082820183811015610d9d5760405162461bcd60e51b8152600401610596906117c7565b600082610dda57506000610da0565b82820282848281610de757fe5b0414610d9d5760405162461bcd60e51b81526004016105969061184e565b3390565b6000818310610e185781610d9d565b5090919050565b610a3f8363a9059cbb60e01b8484604051602401610d0d92919061166a565b6001546040516370a0823160e01b815284916001600160a01b0316906370a0823190610e6e903390600401611632565b60206040518083038186803b158015610e8657600080fd5b505afa158015610e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebe91906115dd565b1015610edc5760405162461bcd60e51b815260040161059690611822565b6001546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90610f1090339030908890600401611646565b602060405180830381600087803b158015610f2a57600080fd5b505af1158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6291906115a5565b50600160009054906101000a90046001600160a01b03166001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600094506001600160a01b0390911692506370a0823191610ffd91309101611632565b60206040518083038186803b15801561101557600080fd5b505afa158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d91906115dd565b90506000811161106f5760405162461bcd60e51b8152600401610596906117fe565b6004805460ff60a01b1916600160a01b178155600354604051630d2680e960e11b81526001600160a01b0390911691631a4d01d2916110b59185918791600091016119dc565b600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b50506004805460ff60a01b191690555060009050600f83900b61113657506040514790339082156108fc029083906000818181858888f19350505050158015611130573d6000803e3d6000fd5b5061123d565b6002546040516370a0823160e01b81526001600160a01b03909116906370a0823190611166903090600401611632565b60206040518083038186803b15801561117e57600080fd5b505afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b691906115dd565b60025460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb906111e9903390859060040161166a565b602060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b91906115a5565b505b8161125161271061057261056b8883610da6565b101561126f5760405162461bcd60e51b815260040161059690611756565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112a0903090600401611632565b60206040518083038186803b1580156112b857600080fd5b505afa1580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f091906115dd565b9050801561137e5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061132a903390869060040161166a565b602060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137c91906115a5565b505b505050505050565b60606113db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d449092919063ffffffff16565b805190915015610a3f57808060200190518101906113f991906115a5565b610a3f5760405162461bcd60e51b81526004016105969061191c565b606061142085611510565b61143c5760405162461bcd60e51b8152600401610596906118c4565b60006060866001600160a01b031685876040516114599190611616565b60006040518083038185875af1925050503d8060008114611496576040519150601f19603f3d011682016040523d82523d6000602084013e61149b565b606091505b509150915081156114af579150610d539050565b8051156114bf5780518082602001fd5b8360405162461bcd60e51b815260040161059691906116f3565b600081836114fa5760405162461bcd60e51b815260040161059691906116f3565b50600083858161150657fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610d53575050151592915050565b80356001600160a01b0381168114610da057600080fd5b600060208284031215611571578081fd5b610d9d8383611549565b6000806040838503121561158d578081fd5b6115978484611549565b946020939093013593505050565b6000602082840312156115b6578081fd5b81518015158114610d9d578182fd5b6000602082840312156115d6578081fd5b5035919050565b6000602082840312156115ee578081fd5b5051919050565b60008060408385031215611607578182fd5b50508035926020909101359150565b600082516116288184602087016119f5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b60608101818460005b60028110156116c55781518352602092830192909101906001016116a6565b5050508260408301529392505050565b600f93840b81529190920b6020820152604081019190915260600190565b60006020825282518060208401526117128160408501602087016119f5565b601f01601f19169190910160400192915050565b6020808252601690820152751393d508105313081cdd11551208149150d15255915160521b604082015260600190565b602080825260119082015270544f4f204d55434820534c49505041474560781b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600a90820152696e6f2062616c616e636560b01b604082015260600190565b6020808252601290820152714e4f5420454e4f5547482042414c414e434560701b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526007908201526606040e6e88aa8960cb1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9182526001600160a01b0316602082015260400190565b928352600f9190910b6020830152604082015260600190565b60005b83811015611a105781810151838201526020016119f8565b83811115611a1f576000848401525b5050505056fea264697066735822122037f65421838e07c3f2823c8f01fed645e37921214feac538d5340bf85100cfce64736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063b2a9cd8911610059578063b2a9cd891461022f578063c1fe3e4814610242578063d2de2f8514610257578063f2fde38b1461027757610109565b80638da5cb5b146101d857806393d56971146101ed578063a87985101461020d57610109565b806357376198116100bb578063573761981461016e578063715018a61461018e57806379cec260146101a3578063801492d7146101c357610109565b80631f1fcd511461010e57806333303f8e146101395780633c59e8481461014e57610109565b3661010957600454600160a01b900460ff16156100fd57610107565b6101076032610297565b005b600080fd5b34801561011a57600080fd5b5061012361060d565b6040516101309190611632565b60405180910390f35b34801561014557600080fd5b5061012361061c565b34801561015a57600080fd5b506101076101693660046115f5565b61062b565b34801561017a57600080fd5b5061010761018936600461157b565b610907565b34801561019a57600080fd5b50610107610a45565b3480156101af57600080fd5b506101076101be3660046115f5565b610ac4565b3480156101cf57600080fd5b50610123610ad0565b3480156101e457600080fd5b50610123610adf565b3480156101f957600080fd5b506101076102083660046115f5565b610aee565b34801561021957600080fd5b50610222610afa565b60405161013091906119bc565b61010761023d3660046115c5565b610aff565b34801561024e57600080fd5b50610123610b1f565b34801561026357600080fd5b50610107610272366004611560565b610b2e565b34801561028357600080fd5b50610107610292366004611560565b610b94565b4760028110156102a7575061060a565b60006102b4826002610d5b565b600354604051635e0d443f60e01b81529192506000916001600160a01b0390911690635e0d443f906102ef90849060019087906004016116d5565b60206040518083038186803b15801561030757600080fd5b505afa15801561031b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033f91906115dd565b9050818110156103d3576002546001600160a01b031663a1903eab83610363610adf565b6040518363ffffffff1660e01b815260040161037f9190611632565b6020604051808303818588803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103d191906115dd565b505b6002546040516370a0823160e01b815247916000916001600160a01b03909116906370a0823190610408903090600401611632565b60206040518083038186803b15801561042057600080fd5b505afa158015610434573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045891906115dd565b600354604080518082018252858152602081018490529051630b4c7e4d60e01b81529293506001600160a01b0390911691630b4c7e4d9185916104a1919060009060040161169d565b6000604051808303818588803b1580156104ba57600080fd5b505af11580156104ce573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600095506001600160a01b0390911693506370a08231925061050591309101611632565b60206040518083038186803b15801561051d57600080fd5b505afa158015610531573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055591906115dd565b90508561057861271061057261056b8b83610da6565b8590610dcb565b90610d5b565b101561059f5760405162461bcd60e51b815260040161059690611756565b60405180910390fd5b600154604051636e553f6560e01b81526001600160a01b0390911690636e553f65906105d190849033906004016119c5565b600060405180830381600087803b1580156105eb57600080fd5b505af11580156105ff573d6000803e3d6000fd5b505050505050505050505b50565b6004546001600160a01b031681565b6001546001600160a01b031681565b816106485760405162461bcd60e51b8152600401610596906118fb565b6002546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061067c90339030908790600401611646565b602060405180830381600087803b15801561069657600080fd5b505af11580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce91906115a5565b506002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610700903090600401611632565b60206040518083038186803b15801561071857600080fd5b505afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906115dd565b9050828110156107725760405162461bcd60e51b815260040161059690611726565b6003546040805180820182526000808252602082018590529151630b4c7e4d60e01b81526001600160a01b0390931692630b4c7e4d926107b5929160040161169d565b600060405180830381600087803b1580156107cf57600080fd5b505af11580156107e3573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600094506001600160a01b0390911692506370a082319161081991309101611632565b60206040518083038186803b15801561083157600080fd5b505afa158015610845573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086991906115dd565b90508161087f61271061057261056b8783610da6565b101561089d5760405162461bcd60e51b815260040161059690611756565b600154604051636e553f6560e01b81526001600160a01b0390911690636e553f65906108cf90849033906004016119c5565b600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b5050505050505050565b61090f610e05565b6000546001600160a01b0390811691161461093c5760405162461bcd60e51b81526004016105969061188f565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156109a15761096b4782610e09565b604051909150339082156108fc029083906000818181858888f1935050505015801561099b573d6000803e3d6000fd5b50610a41565b6040516370a0823160e01b81528290610a29906001600160a01b038316906370a08231906109d3903090600401611632565b60206040518083038186803b1580156109eb57600080fd5b505afa1580156109ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2391906115dd565b83610e09565b9150610a3f6001600160a01b0382163384610e1f565b505b5050565b610a4d610e05565b6000546001600160a01b03908116911614610a7a5760405162461bcd60e51b81526004016105969061188f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610a4182826001610e3e565b6003546001600160a01b031681565b6000546001600160a01b031690565b610a4182826000610e3e565b603281565b600454600160a01b900460ff1615610b165761060a565b61060a81610297565b6002546001600160a01b031681565b610b36610e05565b6000546001600160a01b03908116911614610b635760405162461bcd60e51b81526004016105969061188f565b600180546001600160a01b0319166001600160a01b038381169190911790915560045461060a911682600019610c4a565b610b9c610e05565b6000546001600160a01b03908116911614610bc95760405162461bcd60e51b81526004016105969061188f565b6001600160a01b038116610bef5760405162461bcd60e51b815260040161059690611781565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b801580610cd25750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90610c809030908690600401611683565b60206040518083038186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd091906115dd565b155b610cee5760405162461bcd60e51b815260040161059690611966565b610a3f8363095ea7b360e01b8484604051602401610d0d92919061166a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611386565b6060610d538484600085611415565b949350505050565b6000610d9d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114d9565b90505b92915050565b600082820183811015610d9d5760405162461bcd60e51b8152600401610596906117c7565b600082610dda57506000610da0565b82820282848281610de757fe5b0414610d9d5760405162461bcd60e51b81526004016105969061184e565b3390565b6000818310610e185781610d9d565b5090919050565b610a3f8363a9059cbb60e01b8484604051602401610d0d92919061166a565b6001546040516370a0823160e01b815284916001600160a01b0316906370a0823190610e6e903390600401611632565b60206040518083038186803b158015610e8657600080fd5b505afa158015610e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebe91906115dd565b1015610edc5760405162461bcd60e51b815260040161059690611822565b6001546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90610f1090339030908890600401611646565b602060405180830381600087803b158015610f2a57600080fd5b505af1158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6291906115a5565b50600160009054906101000a90046001600160a01b03166001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b5050600480546040516370a0823160e01b8152600094506001600160a01b0390911692506370a0823191610ffd91309101611632565b60206040518083038186803b15801561101557600080fd5b505afa158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d91906115dd565b90506000811161106f5760405162461bcd60e51b8152600401610596906117fe565b6004805460ff60a01b1916600160a01b178155600354604051630d2680e960e11b81526001600160a01b0390911691631a4d01d2916110b59185918791600091016119dc565b600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b50506004805460ff60a01b191690555060009050600f83900b61113657506040514790339082156108fc029083906000818181858888f19350505050158015611130573d6000803e3d6000fd5b5061123d565b6002546040516370a0823160e01b81526001600160a01b03909116906370a0823190611166903090600401611632565b60206040518083038186803b15801561117e57600080fd5b505afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b691906115dd565b60025460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb906111e9903390859060040161166a565b602060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b91906115a5565b505b8161125161271061057261056b8883610da6565b101561126f5760405162461bcd60e51b815260040161059690611756565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112a0903090600401611632565b60206040518083038186803b1580156112b857600080fd5b505afa1580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f091906115dd565b9050801561137e5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061132a903390869060040161166a565b602060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137c91906115a5565b505b505050505050565b60606113db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d449092919063ffffffff16565b805190915015610a3f57808060200190518101906113f991906115a5565b610a3f5760405162461bcd60e51b81526004016105969061191c565b606061142085611510565b61143c5760405162461bcd60e51b8152600401610596906118c4565b60006060866001600160a01b031685876040516114599190611616565b60006040518083038185875af1925050503d8060008114611496576040519150601f19603f3d011682016040523d82523d6000602084013e61149b565b606091505b509150915081156114af579150610d539050565b8051156114bf5780518082602001fd5b8360405162461bcd60e51b815260040161059691906116f3565b600081836114fa5760405162461bcd60e51b815260040161059691906116f3565b50600083858161150657fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610d53575050151592915050565b80356001600160a01b0381168114610da057600080fd5b600060208284031215611571578081fd5b610d9d8383611549565b6000806040838503121561158d578081fd5b6115978484611549565b946020939093013593505050565b6000602082840312156115b6578081fd5b81518015158114610d9d578182fd5b6000602082840312156115d6578081fd5b5035919050565b6000602082840312156115ee578081fd5b5051919050565b60008060408385031215611607578182fd5b50508035926020909101359150565b600082516116288184602087016119f5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b60608101818460005b60028110156116c55781518352602092830192909101906001016116a6565b5050508260408301529392505050565b600f93840b81529190920b6020820152604081019190915260600190565b60006020825282518060208401526117128160408501602087016119f5565b601f01601f19169190910160400192915050565b6020808252601690820152751393d508105313081cdd11551208149150d15255915160521b604082015260600190565b602080825260119082015270544f4f204d55434820534c49505041474560781b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600a90820152696e6f2062616c616e636560b01b604082015260600190565b6020808252601290820152714e4f5420454e4f5547482042414c414e434560701b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526007908201526606040e6e88aa8960cb1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9182526001600160a01b0316602082015260400190565b928352600f9190910b6020830152604082015260600190565b60005b83811015611a105781810151838201526020016119f8565b83811115611a1f576000848401525b5050505056fea264697066735822122037f65421838e07c3f2823c8f01fed645e37921214feac538d5340bf85100cfce64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.