Spend less on fees, more on crypto. Buy crypto easily with MoonPay Balance. 20M+ users trust MoonPay worldwide.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Thousands of tokens and competitive prices from multiple aggregators, in one place.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (78)100 BADGERBadger (BADGER)$386.00@3.863,693.23504187 BALBalancer (BAL)$9,343.88@2.531 BENDBend Token (BEND)$0.00@0.00041,000 MTVMultiVAC (MTV)$0.88@0.0009945.51421842 PERPPerpetual (PERP)$678.52@0.71762.88203896 rETHRocket Pool ... (rETH)$10,819.87@3,754.24299,483,418.493278 SPELLSpell Token (SPELL)$230,057.17@0.00080 sdFRAX3CRV-fStake DAO Cu... (sdFRAX...)0.00000594 TKXTokenize Emb... (TKX)$0.00@44.4829152.499211 yvUSDCUSDC yVault (yvUSDC)$170.80@1.120.001785 yvUSDCUSDC yVault (yvUSDC)234.30520993 AAVEAave Token (AAVE)$70,193.15@299.58475,684.124228 USDCUSDC (USDC)$475,334.50@0.99933.7511709 WBTCWrapped BTC (WBTC)$360,948.92@96,223.00900.28399093 WETHWrapped Ethe... (WETH)$3,018,161.55@3,352.455493.27046712 wstETHWrapped liqu... (wstETH)$1,971,394.88@3,996.582,500 $ Evmosia.comERC-20: $ E... ($ Evm...)5,000 $ rEthLP.comERC-20: $ rE... ($ rEth...)4.75ERC20 ***777.11899791 BGBGBigMouthFrog50.00292838 BlueSparrowBlueSparrowToken$1.04@0.02081,343,638,784.11173 CarsERC-20: Cars (Cars)87.43712195 FIREERC-20: Fire (FIRE)692,927.93180807 GHOERC-20: GHO (GHO)71,493,558.9382664 METAHERC-20: Meta... (METAH)451,000,000,000 SHITROCKETERC-20: Shit... (SHITRO...)0ERC20 ***5 SWAPPSwapp Token5ERC20 ***2ERC20 ***0.251ERC20 ***0.14ERC20 ***1ERC20 ***0.01ERC20 ***10ERC20 ***0.01ERC20 ***2ERC20 ***1.0001ERC20 ***2ERC20 ***1ERC20 ***1ERC20 ***0.01ERC20 ***2ERC20 ***0.1ERC20 ***2.13573577 ZENIQZENIQ$0.01@0.00651 HQGERC-20: 环球股 (HQG)1.2 TokenERC-20 TOKEN*[Suspicious]200 TokenERC-20 TOKEN*[Suspicious]30 TokenERC-20 TOKEN*[Suspicious]1.7 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]8,271 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]329,562 TokenERC-20 TOKEN*[Suspicious]9,283 TokenERC-20 TOKEN*[Suspicious]500 TokenERC-20 TOKEN*[Suspicious]9,283 TokenERC-20 TOKEN*[Suspicious]5,000 TokenERC-20 TOKEN*[Suspicious]5,000 TokenERC-20 TOKEN*[Suspicious]100,000 TokenERC-20 TOKEN*[Suspicious]4,214 TokenERC-20 TOKEN*[Suspicious]7,000 TokenERC-20 TOKEN*[Suspicious]98,127 TokenERC-20 TOKEN*[Suspicious]350 TokenERC-20 TOKEN*[Suspicious]587 TokenERC-20 TOKEN*[Suspicious]400 TokenERC-20 TOKEN*[Unsafe]7,000 TokenERC-20 TOKEN*[Unsafe]30 TokenERC-20 TOKEN*[Spam]9,283 TokenERC-20 TOKEN*[Spam]100 TokenERC-20 TOKEN*[Spam]12.5 TokenERC-20 TOKEN*[Spam]7,000 TokenERC-20 TOKEN*[Spam]50,000 TokenERC-20 TOKEN*[Spam]50,000 TokenERC-20 TOKEN*[Spam]33,336.29867298 TokenERC-20 TOKEN*[Spam]141,019.5639058 TokenERC-20 TOKEN*[Spam]68,071.06532534 TokenERC-20 TOKEN*[Spam]NFT Tokens (43)asteth.com : airdrop recipient# asteth.com : airdrop recipientERC-1155zsteth.com : airdrop recipient# zsteth.com : airdrop recipientERC-1155claim rewards on apyusd.netapyusd.netERC-1155EventERC-1155LidowstETH.comLidowstETH.comERC-1155Nft Mint Club ItemsNft Mint Club ItemsERC-1155Reward Club [u7tnbbSX]Reward Club [SuJHhMBq]ERC-1155Official Authorize credentialRocket Pool: Airdrop NFT VoucherERC-1155claim rewards on staave.netstaave.netERC-1155debridgeth.comWithdrawal Badge debridgeth.comERC-1155ether-origin.comWithdrawal NFT ether-origin.comERC-1155claim rewards on wsteth.orgwsteth.orgERC-1155Let's Go!🎁ERC-1155ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 27 transactions
Transaction Hash MethodBlockFromTo0x68747470 13924617 2022-01-02 7:11:30 1101 days ago 1641107490 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924617 2022-01-02 7:11:30 1101 days ago 1641107490 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924617 2022-01-02 7:11:30 1101 days ago 1641107490 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924617 2022-01-02 7:11:30 1101 days ago 1641107490 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924617 2022-01-02 7:11:30 1101 days ago 1641107490 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924616 2022-01-02 7:11:27 1101 days ago 1641107487 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924614 2022-01-02 7:10:59 1101 days ago 1641107459 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 0x68747470 13924613 2022-01-02 7:10:18 1101 days ago 1641107418 IN 0 ETH$0.00 0.00179906 79 View more zero value Internal Transactions in Advanced View mode
Advanced mode:Loading...LoadingContract Name:MarginPool
Compiler Versionv0.6.10+commit.00c0fcaf
Optimization Enabled:Yes with 200 runs
Other Settings:default evmVersionContract Source Code (Solidity Standard Json-Input format)
/** * SPDX-License-Identifier: UNLICENSED */ pragma solidity 0.6.10; import {ERC20Interface} from "./interfaces/ERC20Interface.sol"; import {AddressBookInterface} from "./interfaces/AddressBookInterface.sol"; import {SafeMath} from "./packages/oz/SafeMath.sol"; import {SafeERC20} from "./packages/oz/SafeERC20.sol"; import {Ownable} from "./packages/oz/Ownable.sol"; /** * @author Opyn Team * @title MarginPool * @notice Contract that holds all protocol funds */ contract MarginPool is Ownable { using SafeMath for uint256; using SafeERC20 for ERC20Interface; /// @notice AddressBook module address public addressBook; /// @dev the address that has the ability to withdraw excess assets in the pool address public farmer; /// @dev mapping between an asset and the amount of the asset in the pool mapping(address => uint256) internal assetBalance; /** * @notice contructor * @param _addressBook AddressBook module */ constructor(address _addressBook) public { require(_addressBook != address(0), "Invalid address book"); addressBook = _addressBook; } /// @notice emits an event when marginpool receive funds from controller event TransferToPool(address indexed asset, address indexed user, uint256 amount); /// @notice emits an event when marginpool transfer funds to controller event TransferToUser(address indexed asset, address indexed user, uint256 amount); /// @notice emit event after updating the farmer address event FarmerUpdated(address indexed oldAddress, address indexed newAddress); /// @notice emit event when an asset gets harvested from the pool event AssetFarmed(address indexed asset, address indexed receiver, uint256 amount); /** * @notice check if the sender is the Controller module */ modifier onlyController() { require( msg.sender == AddressBookInterface(addressBook).getController(), "MarginPool: Sender is not Controller" ); _; } /** * @notice check if the sender is the farmer address */ modifier onlyFarmer() { require(msg.sender == farmer, "MarginPool: Sender is not farmer"); _; } /** * @notice transfers an asset from a user to the pool * @param _asset address of the asset to transfer * @param _user address of the user to transfer assets from * @param _amount amount of the token to transfer from _user */ function transferToPool( address _asset, address _user, uint256 _amount ) public onlyController { require(_amount > 0, "MarginPool: transferToPool amount is equal to 0"); assetBalance[_asset] = assetBalance[_asset].add(_amount); // transfer _asset _amount from _user to pool ERC20Interface(_asset).safeTransferFrom(_user, address(this), _amount); emit TransferToPool(_asset, _user, _amount); } /** * @notice transfers an asset from the pool to a user * @param _asset address of the asset to transfer * @param _user address of the user to transfer assets to * @param _amount amount of the token to transfer to _user */ function transferToUser( address _asset, address _user, uint256 _amount ) public onlyController { require(_user != address(this), "MarginPool: cannot transfer assets to oneself"); assetBalance[_asset] = assetBalance[_asset].sub(_amount); // transfer _asset _amount from pool to _user ERC20Interface(_asset).safeTransfer(_user, _amount); emit TransferToUser(_asset, _user, _amount); } /** * @notice get the stored balance of an asset * @param _asset asset address * @return asset balance */ function getStoredBalance(address _asset) external view returns (uint256) { return assetBalance[_asset]; } /** * @notice transfers multiple assets from users to the pool * @param _asset addresses of the assets to transfer * @param _user addresses of the users to transfer assets to * @param _amount amount of each token to transfer to pool */ function batchTransferToPool( address[] memory _asset, address[] memory _user, uint256[] memory _amount ) external onlyController { require( _asset.length == _user.length && _user.length == _amount.length, "MarginPool: batchTransferToPool array lengths are not equal" ); for (uint256 i = 0; i < _asset.length; i++) { // transfer _asset _amount from _user to pool transferToPool(_asset[i], _user[i], _amount[i]); } } /** * @notice transfers multiple assets from the pool to users * @param _asset addresses of the assets to transfer * @param _user addresses of the users to transfer assets to * @param _amount amount of each token to transfer to _user */ function batchTransferToUser( address[] memory _asset, address[] memory _user, uint256[] memory _amount ) external onlyController { require( _asset.length == _user.length && _user.length == _amount.length, "MarginPool: batchTransferToUser array lengths are not equal" ); for (uint256 i = 0; i < _asset.length; i++) { // transfer _asset _amount from pool to _user transferToUser(_asset[i], _user[i], _amount[i]); } } /** * @notice function to collect the excess balance of a particular asset * @dev can only be called by the farmer address * @param _asset asset address * @param _receiver receiver address * @param _amount amount to remove from pool */ function farm( address _asset, address _receiver, uint256 _amount ) external onlyFarmer { require(_receiver != address(0), "MarginPool: invalid receiver address"); uint256 externalBalance = ERC20Interface(_asset).balanceOf(address(this)); uint256 storedBalance = assetBalance[_asset]; require(_amount <= externalBalance.sub(storedBalance), "MarginPool: amount to farm exceeds limit"); ERC20Interface(_asset).safeTransfer(_receiver, _amount); emit AssetFarmed(_asset, _receiver, _amount); } /** * @notice function to set farmer address * @dev can only be called by MarginPool owner * @param _farmer farmer address */ function setFarmer(address _farmer) external onlyOwner { emit FarmerUpdated(farmer, _farmer); farmer = _farmer; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.10; interface AddressBookInterface { /* Getters */ function getOtokenImpl() external view returns (address); function getOtokenFactory() external view returns (address); function getWhitelist() external view returns (address); function getController() external view returns (address); function getOracle() external view returns (address); function getMarginPool() external view returns (address); function getMarginCalculator() external view returns (address); function getLiquidationManager() external view returns (address); function getAddress(bytes32 _id) external view returns (address); /* Setters */ function setOtokenImpl(address _otokenImpl) external; function setOtokenFactory(address _factory) external; function setOracleImpl(address _otokenImpl) external; function setWhitelist(address _whitelist) external; function setController(address _controller) external; function setMarginPool(address _marginPool) external; function setMarginCalculator(address _calculator) external; function setLiquidationManager(address _liquidationManager) external; function setAddress(bytes32 _id, address _newImpl) external; }
/** * SPDX-License-Identifier: UNLICENSED */ pragma solidity 0.6.10; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface ERC20Interface { /** * @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); function decimals() external view returns (uint8); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); 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); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.10; /* * @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 virtual view returns (address payable) { return msg.sender; } function _msgData() internal virtual view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.10; import "./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. */ 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; } }
// SPDX-License-Identifier: MIT /* solhint-disable */ pragma solidity ^0.6.0; import "../../interfaces/ERC20Interface.sol"; import "./SafeMath.sol"; import "./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 ERC20Interface;` 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( ERC20Interface token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( ERC20Interface 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 * {ERC20Interface-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( ERC20Interface 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( ERC20Interface 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( ERC20Interface 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(ERC20Interface token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT /* solhint-disable */ pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, 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) { // Solidity only automatically asserts when dividing by 0 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; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"address","name":"_addressBook","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AssetFarmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"FarmerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferToPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferToUser","type":"event"},{"inputs":[],"name":"addressBook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_asset","type":"address[]"},{"internalType":"address[]","name":"_user","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"batchTransferToPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_asset","type":"address[]"},{"internalType":"address[]","name":"_user","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"batchTransferToUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"farm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farmer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getStoredBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_farmer","type":"address"}],"name":"setFarmer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToUser","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161175e38038061175e8339818101604052602081101561003357600080fd5b505160006100486001600160e01b0361011216565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100ed576040805162461bcd60e51b815260206004820152601460248201527f496e76616c6964206164647265737320626f6f6b000000000000000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055610116565b3390565b611639806101256000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063d811fcf011610071578063d811fcf01461049f578063dd2c99f7146104a7578063e2ed781c146104dd578063f2fde38b14610503578063f5887cdd14610529578063fa93b2a514610531576100b4565b80634979cd14146100b9578063715018a61461026057806386a19c5e146102685780638da5cb5b1461040d578063baf46ba614610431578063c595b00714610467575b600080fd5b61025e600480360360608110156100cf57600080fd5b810190602081018135600160201b8111156100e957600080fd5b8201836020820111156100fb57600080fd5b803590602001918460208302840111600160201b8311171561011c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561016b57600080fd5b82018360208201111561017d57600080fd5b803590602001918460208302840111600160201b8311171561019e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ed57600080fd5b8201836020820111156101ff57600080fd5b803590602001918460208302840111600160201b8311171561022057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610567945050505050565b005b61025e6106d2565b61025e6004803603606081101561027e57600080fd5b810190602081018135600160201b81111561029857600080fd5b8201836020820111156102aa57600080fd5b803590602001918460208302840111600160201b831117156102cb57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561031a57600080fd5b82018360208201111561032c57600080fd5b803590602001918460208302840111600160201b8311171561034d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561039c57600080fd5b8201836020820111156103ae57600080fd5b803590602001918460208302840111600160201b831117156103cf57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610786945050505050565b6104156108eb565b604080516001600160a01b039092168252519081900360200190f35b61025e6004803603606081101561044757600080fd5b506001600160a01b038135811691602081013590911690604001356108fa565b61048d6004803603602081101561047d57600080fd5b50356001600160a01b0316610aea565b60408051918252519081900360200190f35b610415610b05565b61025e600480360360608110156104bd57600080fd5b506001600160a01b03813581169160208101359091169060400135610b14565b61025e600480360360208110156104f357600080fd5b50356001600160a01b0316610cba565b61025e6004803603602081101561051957600080fd5b50356001600160a01b0316610d80565b610415610e8a565b61025e6004803603606081101561054757600080fd5b506001600160a01b03813581169160208101359091169060400135610e99565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b557600080fd5b505afa1580156105c9573d6000803e3d6000fd5b505050506040513d60208110156105df57600080fd5b50516001600160a01b031633146106275760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b81518351148015610639575080518251145b6106745760405162461bcd60e51b815260040180806020018281038252603b815260200180611540603b913960400191505060405180910390fd5b60005b83518110156106cc576106c484828151811061068f57fe5b60200260200101518483815181106106a357fe5b60200260200101518484815181106106b757fe5b6020026020010151610b14565b600101610677565b50505050565b6106da611047565b6000546001600160a01b0390811691161461073c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d457600080fd5b505afa1580156107e8573d6000803e3d6000fd5b505050506040513d60208110156107fe57600080fd5b50516001600160a01b031633146108465760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b81518351148015610858575080518251145b6108935760405162461bcd60e51b815260040180806020018281038252603b8152602001806115c9603b913960400191505060405180910390fd5b60005b83518110156106cc576108e38482815181106108ae57fe5b60200260200101518483815181106108c257fe5b60200260200101518484815181106108d657fe5b6020026020010151610e99565b600101610896565b6000546001600160a01b031690565b6002546001600160a01b03163314610959576040805162461bcd60e51b815260206004820181905260248201527f4d617267696e506f6f6c3a2053656e646572206973206e6f74206661726d6572604482015290519081900360640190fd5b6001600160a01b03821661099e5760405162461bcd60e51b815260040180806020018281038252602481526020018061157b6024913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d6020811015610a1257600080fd5b50516001600160a01b038516600090815260036020526040902054909150610a40828263ffffffff61104b16565b831115610a7e5760405162461bcd60e51b81526004018080602001828103825260288152602001806115186028913960400191505060405180910390fd5b610a986001600160a01b038616858563ffffffff61109416565b836001600160a01b0316856001600160a01b03167f2bfce9f5efc2d7cd579270748ddf9d23bc6c0af5193a2759314c2300af9956b1856040518082815260200191505060405180910390a35050505050565b6001600160a01b031660009081526003602052604090205490565b6002546001600160a01b031681565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d6020811015610b8c57600080fd5b50516001600160a01b03163314610bd45760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b60008111610c135760405162461bcd60e51b815260040180806020018281038252602f815260200180611472602f913960400191505060405180910390fd5b6001600160a01b038316600090815260036020526040902054610c3c908263ffffffff6110eb16565b6001600160a01b038416600081815260036020526040902091909155610c6a9083308463ffffffff61114516565b816001600160a01b0316836001600160a01b03167f9b4f8cdd00ca1dad21e1b00707351fe747dd74738cf95f60f66518c52c35e645836040518082815260200191505060405180910390a3505050565b610cc2611047565b6000546001600160a01b03908116911614610d24576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002546040516001600160a01b038084169216907fec2062989428d4fc69d3ba2664807361f4647daf215450588331bbe51efb6a6890600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b610d88611047565b6000546001600160a01b03908116911614610dea576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e2f5760405162461bcd60e51b81526004018080602001828103825260268152602001806114a16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee757600080fd5b505afa158015610efb573d6000803e3d6000fd5b505050506040513d6020811015610f1157600080fd5b50516001600160a01b03163314610f595760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b6001600160a01b038216301415610fa15760405162461bcd60e51b815260040180806020018281038252602d8152602001806114eb602d913960400191505060405180910390fd5b6001600160a01b038316600090815260036020526040902054610fca908263ffffffff61104b16565b6001600160a01b038416600081815260036020526040902091909155610ff790838363ffffffff61109416565b816001600160a01b0316836001600160a01b03167f2d6ff46a316ec627f7677daafa6ad7d6f36bcf938c5f47bf6e671b09d27b415f836040518082815260200191505060405180910390a3505050565b3390565b600061108d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061119f565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110e6908490611236565b505050565b60008282018381101561108d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106cc908590611236565b6000818484111561122e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111f35781810151838201526020016111db565b50505050905090810190601f1680156112205780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b606061128b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112e79092919063ffffffff16565b8051909150156110e6578080602001905160208110156112aa57600080fd5b50516110e65760405162461bcd60e51b815260040180806020018281038252602a81526020018061159f602a913960400191505060405180910390fd5b60606112f684846000856112fe565b949350505050565b60606113098561146b565b61135a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113995780518252601f19909201916020918201910161137a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146113fb576040519150601f19603f3d011682016040523d82523d6000602084013e611400565b606091505b509150915081156114145791506112f69050565b8051156114245780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156111f35781810151838201526020016111db565b3b15159056fe4d617267696e506f6f6c3a207472616e73666572546f506f6f6c20616d6f756e7420697320657175616c20746f20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d617267696e506f6f6c3a2053656e646572206973206e6f7420436f6e74726f6c6c65724d617267696e506f6f6c3a2063616e6e6f74207472616e736665722061737365747320746f206f6e6573656c664d617267696e506f6f6c3a20616d6f756e7420746f206661726d2065786365656473206c696d69744d617267696e506f6f6c3a2062617463685472616e73666572546f506f6f6c206172726179206c656e6774687320617265206e6f7420657175616c4d617267696e506f6f6c3a20696e76616c696420726563656976657220616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d617267696e506f6f6c3a2062617463685472616e73666572546f55736572206172726179206c656e6774687320617265206e6f7420657175616ca2646970667358221220d32960825ff83345ad62efe6a69714f37fd8c3497ad391ff9055892d90b51ced64736f6c634300060a00330000000000000000000000001e31f2dcbad4dc572004eae6355fb18f9615cbe4Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063d811fcf011610071578063d811fcf01461049f578063dd2c99f7146104a7578063e2ed781c146104dd578063f2fde38b14610503578063f5887cdd14610529578063fa93b2a514610531576100b4565b80634979cd14146100b9578063715018a61461026057806386a19c5e146102685780638da5cb5b1461040d578063baf46ba614610431578063c595b00714610467575b600080fd5b61025e600480360360608110156100cf57600080fd5b810190602081018135600160201b8111156100e957600080fd5b8201836020820111156100fb57600080fd5b803590602001918460208302840111600160201b8311171561011c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561016b57600080fd5b82018360208201111561017d57600080fd5b803590602001918460208302840111600160201b8311171561019e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ed57600080fd5b8201836020820111156101ff57600080fd5b803590602001918460208302840111600160201b8311171561022057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610567945050505050565b005b61025e6106d2565b61025e6004803603606081101561027e57600080fd5b810190602081018135600160201b81111561029857600080fd5b8201836020820111156102aa57600080fd5b803590602001918460208302840111600160201b831117156102cb57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561031a57600080fd5b82018360208201111561032c57600080fd5b803590602001918460208302840111600160201b8311171561034d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561039c57600080fd5b8201836020820111156103ae57600080fd5b803590602001918460208302840111600160201b831117156103cf57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610786945050505050565b6104156108eb565b604080516001600160a01b039092168252519081900360200190f35b61025e6004803603606081101561044757600080fd5b506001600160a01b038135811691602081013590911690604001356108fa565b61048d6004803603602081101561047d57600080fd5b50356001600160a01b0316610aea565b60408051918252519081900360200190f35b610415610b05565b61025e600480360360608110156104bd57600080fd5b506001600160a01b03813581169160208101359091169060400135610b14565b61025e600480360360208110156104f357600080fd5b50356001600160a01b0316610cba565b61025e6004803603602081101561051957600080fd5b50356001600160a01b0316610d80565b610415610e8a565b61025e6004803603606081101561054757600080fd5b506001600160a01b03813581169160208101359091169060400135610e99565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b557600080fd5b505afa1580156105c9573d6000803e3d6000fd5b505050506040513d60208110156105df57600080fd5b50516001600160a01b031633146106275760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b81518351148015610639575080518251145b6106745760405162461bcd60e51b815260040180806020018281038252603b815260200180611540603b913960400191505060405180910390fd5b60005b83518110156106cc576106c484828151811061068f57fe5b60200260200101518483815181106106a357fe5b60200260200101518484815181106106b757fe5b6020026020010151610b14565b600101610677565b50505050565b6106da611047565b6000546001600160a01b0390811691161461073c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d457600080fd5b505afa1580156107e8573d6000803e3d6000fd5b505050506040513d60208110156107fe57600080fd5b50516001600160a01b031633146108465760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b81518351148015610858575080518251145b6108935760405162461bcd60e51b815260040180806020018281038252603b8152602001806115c9603b913960400191505060405180910390fd5b60005b83518110156106cc576108e38482815181106108ae57fe5b60200260200101518483815181106108c257fe5b60200260200101518484815181106108d657fe5b6020026020010151610e99565b600101610896565b6000546001600160a01b031690565b6002546001600160a01b03163314610959576040805162461bcd60e51b815260206004820181905260248201527f4d617267696e506f6f6c3a2053656e646572206973206e6f74206661726d6572604482015290519081900360640190fd5b6001600160a01b03821661099e5760405162461bcd60e51b815260040180806020018281038252602481526020018061157b6024913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d6020811015610a1257600080fd5b50516001600160a01b038516600090815260036020526040902054909150610a40828263ffffffff61104b16565b831115610a7e5760405162461bcd60e51b81526004018080602001828103825260288152602001806115186028913960400191505060405180910390fd5b610a986001600160a01b038616858563ffffffff61109416565b836001600160a01b0316856001600160a01b03167f2bfce9f5efc2d7cd579270748ddf9d23bc6c0af5193a2759314c2300af9956b1856040518082815260200191505060405180910390a35050505050565b6001600160a01b031660009081526003602052604090205490565b6002546001600160a01b031681565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d6020811015610b8c57600080fd5b50516001600160a01b03163314610bd45760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b60008111610c135760405162461bcd60e51b815260040180806020018281038252602f815260200180611472602f913960400191505060405180910390fd5b6001600160a01b038316600090815260036020526040902054610c3c908263ffffffff6110eb16565b6001600160a01b038416600081815260036020526040902091909155610c6a9083308463ffffffff61114516565b816001600160a01b0316836001600160a01b03167f9b4f8cdd00ca1dad21e1b00707351fe747dd74738cf95f60f66518c52c35e645836040518082815260200191505060405180910390a3505050565b610cc2611047565b6000546001600160a01b03908116911614610d24576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002546040516001600160a01b038084169216907fec2062989428d4fc69d3ba2664807361f4647daf215450588331bbe51efb6a6890600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b610d88611047565b6000546001600160a01b03908116911614610dea576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e2f5760405162461bcd60e51b81526004018080602001828103825260268152602001806114a16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600160009054906101000a90046001600160a01b03166001600160a01b0316633018205f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee757600080fd5b505afa158015610efb573d6000803e3d6000fd5b505050506040513d6020811015610f1157600080fd5b50516001600160a01b03163314610f595760405162461bcd60e51b81526004018080602001828103825260248152602001806114c76024913960400191505060405180910390fd5b6001600160a01b038216301415610fa15760405162461bcd60e51b815260040180806020018281038252602d8152602001806114eb602d913960400191505060405180910390fd5b6001600160a01b038316600090815260036020526040902054610fca908263ffffffff61104b16565b6001600160a01b038416600081815260036020526040902091909155610ff790838363ffffffff61109416565b816001600160a01b0316836001600160a01b03167f2d6ff46a316ec627f7677daafa6ad7d6f36bcf938c5f47bf6e671b09d27b415f836040518082815260200191505060405180910390a3505050565b3390565b600061108d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061119f565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110e6908490611236565b505050565b60008282018381101561108d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106cc908590611236565b6000818484111561122e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111f35781810151838201526020016111db565b50505050905090810190601f1680156112205780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b606061128b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112e79092919063ffffffff16565b8051909150156110e6578080602001905160208110156112aa57600080fd5b50516110e65760405162461bcd60e51b815260040180806020018281038252602a81526020018061159f602a913960400191505060405180910390fd5b60606112f684846000856112fe565b949350505050565b60606113098561146b565b61135a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113995780518252601f19909201916020918201910161137a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146113fb576040519150601f19603f3d011682016040523d82523d6000602084013e611400565b606091505b509150915081156114145791506112f69050565b8051156114245780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156111f35781810151838201526020016111db565b3b15159056fe4d617267696e506f6f6c3a207472616e73666572546f506f6f6c20616d6f756e7420697320657175616c20746f20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d617267696e506f6f6c3a2053656e646572206973206e6f7420436f6e74726f6c6c65724d617267696e506f6f6c3a2063616e6e6f74207472616e736665722061737365747320746f206f6e6573656c664d617267696e506f6f6c3a20616d6f756e7420746f206661726d2065786365656473206c696d69744d617267696e506f6f6c3a2062617463685472616e73666572546f506f6f6c206172726179206c656e6774687320617265206e6f7420657175616c4d617267696e506f6f6c3a20696e76616c696420726563656976657220616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d617267696e506f6f6c3a2062617463685472616e73666572546f55736572206172726179206c656e6774687320617265206e6f7420657175616ca2646970667358221220d32960825ff83345ad62efe6a69714f37fd8c3497ad391ff9055892d90b51ced64736f6c634300060a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001e31f2dcbad4dc572004eae6355fb18f9615cbe4
-----Decoded View---------------
Arg [0] : _addressBook (address): 0x1E31F2DCBad4dc572004Eae6355fB18F9615cBe4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001e31f2dcbad4dc572004eae6355fb18f9615cbe4Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 30 Chains
Chain Token Portfolio % Price Amount Value ETH 49.10% $3,352.45 900.284 $3,018,161.55 ETH 32.07% $3,996.58 493.2705 $1,971,394.88 ETH 7.73% $0.999265 475,684.1242 $475,334.5 ETH 5.87% $96,223 3.7512 $360,948.92 ETH 3.74% $0.000768 299,483,418.4933 $230,057.17 ETH 1.14% $299.58 234.3052 $70,193.15 ETH 0.18% $3,754.24 2.882 $10,819.87 ETH 0.15% $2.53 3,693.235 $9,343.88 ETH 0.01% $0.717624 945.5142 $678.52 ETH <0.01% $3.86 100 $386 ETH <0.01% $1.12 152.4992 $170.8 ETH <0.01% $0.02081 50.0029 $1.04 ETH <0.01% $0.00088 1,000 $0.8802 Loading...Loading[ Download: CSV Export ]A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity), ABIDecodeTwoDimensionalArrayMemory (very low-severity), KeccakCaching (medium-severity), EmptyByteArrayCopy (medium-severity), DynamicArrayCleanup (medium-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
Transaction Private Note
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.