Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 42 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18431308 | 452 days ago | IN | 0 ETH | 0.00414485 | ||||
Claim | 18431294 | 452 days ago | IN | 0 ETH | 0.00370591 | ||||
Claim | 18423163 | 454 days ago | IN | 0 ETH | 0.00330054 | ||||
Withdraw | 18423157 | 454 days ago | IN | 0 ETH | 0.00285264 | ||||
Withdraw | 18416612 | 454 days ago | IN | 0 ETH | 0.00340538 | ||||
Withdraw | 18416606 | 454 days ago | IN | 0 ETH | 0.0033765 | ||||
Withdraw | 18416571 | 454 days ago | IN | 0 ETH | 0.00472175 | ||||
Stake | 18395878 | 457 days ago | IN | 0 ETH | 0.00105028 | ||||
Stake | 18358267 | 463 days ago | IN | 0 ETH | 0.00074167 | ||||
Compound | 18358258 | 463 days ago | IN | 0 ETH | 0.00124868 | ||||
Stake | 18340085 | 465 days ago | IN | 0 ETH | 0.00103264 | ||||
Withdraw | 18337022 | 466 days ago | IN | 0 ETH | 0.00074973 | ||||
Withdraw | 18333969 | 466 days ago | IN | 0 ETH | 0.00100727 | ||||
Compound | 18316165 | 468 days ago | IN | 0 ETH | 0.00128737 | ||||
Stake | 18309853 | 469 days ago | IN | 0 ETH | 0.0006531 | ||||
Stake | 18308528 | 470 days ago | IN | 0 ETH | 0.00088204 | ||||
Stake | 18308517 | 470 days ago | IN | 0 ETH | 0.00083784 | ||||
Compound | 18308496 | 470 days ago | IN | 0 ETH | 0.00134773 | ||||
Stake | 18308486 | 470 days ago | IN | 0 ETH | 0.00091107 | ||||
Stake | 18307498 | 470 days ago | IN | 0 ETH | 0.00075869 | ||||
Compound | 18307487 | 470 days ago | IN | 0 ETH | 0.00117891 | ||||
Withdraw | 18306148 | 470 days ago | IN | 0 ETH | 0.00165338 | ||||
Stake | 18301513 | 471 days ago | IN | 0 ETH | 0.00113389 | ||||
Stake | 18291521 | 472 days ago | IN | 0 ETH | 0.00095204 | ||||
Stake | 18269666 | 475 days ago | IN | 0 ETH | 0.00081163 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
EGMCStakingPoolManager
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.19; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IEGMCStakingPool.sol"; contract EGMCStakingPoolManager is Ownable, Pausable, ReentrancyGuard { using SafeMath for uint; using SafeERC20 for IERC20; IERC20 public immutable token; address[] public pools; uint public poolsLength; address private singleAssetPool; constructor ( address _token ) { token = IERC20(_token); _pause(); } /** VIEW FUNCTIONS */ function earned(address account) public view returns (uint reward) { for (uint index = 0; index < poolsLength; index++) { reward = reward.add(IEGMCStakingPool(pools[index]).earned(account)); } } /** PUBLIC FUNCTIONS */ function stake(address pool, uint amount) external whenNotPaused nonReentrant { _stake(pool, _msgSender(), amount, false); } function withdraw(address pool, uint amount) external nonReentrant { _withdraw(pool, _msgSender(), amount); } function claim() external nonReentrant { for (uint index = 0; index < poolsLength; index++) { IEGMCStakingPool(pools[index]).claim(_msgSender(), false); } } function compound() external nonReentrant { uint reward = earned(_msgSender()); if (reward > 0) { for (uint index = 0; index < poolsLength; index++) { IEGMCStakingPool(pools[index]).claim(_msgSender(), true); } token.approve(singleAssetPool, reward); _stake(singleAssetPool, _msgSender(), reward, true); } } /** INTERNAL FUNCTIONS */ function _stake(address pool, address account, uint amount, bool isCompound) internal { bool foundPool = false; for (uint i; i < poolsLength; i++) { if (pools[i] == pool) { foundPool = true; break; } } require(foundPool, "Pool doesn't exists"); IEGMCStakingPool(pool).stake(account, amount, isCompound); } function _withdraw(address pool, address account, uint amount) internal { bool foundPool = false; for (uint i; i < poolsLength; i++) { if (pools[i] == pool) { foundPool = true; break; } } require(foundPool, "Pool doesn't exist"); IEGMCStakingPool(pool).withdraw(account, amount); } function _setSingleAssetPool(address _pool) internal { require(_pool != address(0), "Invalid single asset pool"); singleAssetPool = _pool; } /** RESTRICTED FUNCTIONS */ function addPool(address _pool, bool _isSingleAsset) external onlyOwner { bool foundPool; for (uint i; i < poolsLength; i++) { if (pools[i] == _pool) { foundPool = true; break; } } require(!foundPool, "Pool already exists"); pools.push(_pool); poolsLength++; if (_isSingleAsset) _setSingleAssetPool(_pool); } function removePool(address _pool) external onlyOwner { for (uint i; i < poolsLength; i++) { if (pools[i] == _pool) { pools[i] = pools[pools.length - 1]; pools.pop(); poolsLength--; break; } } } function enableDeposits() external onlyOwner { _unpause(); } function disableDeposits() external onlyOwner { _pause(); } function setSingleAssetPool(address _pool) external onlyOwner { _setSingleAssetPool(_pool); } function recoverTokens(address _token) external onlyOwner { IERC20(_token).transfer(owner(), IERC20(_token).balanceOf(address(this))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity =0.8.19; interface IEGMCStakingPool { function earned(address account) external view returns (uint rewards); function stake(address account, uint amount, bool isCompound) external; function withdraw(address account, uint amount) external; function claim(address account, bool compound) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"bool","name":"_isSingleAsset","type":"bool"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"removePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setSingleAssetPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","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":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200204b3803806200204b8339818101604052810190620000379190620002d9565b620000576200004b620000c360201b60201c565b620000cb60201b60201c565b60008060146101000a81548160ff021916908315150217905550600180819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620000bc6200018f60201b60201c565b50620003bc565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200019f6200020460201b60201c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001eb620000c360201b60201c565b604051620001fa91906200031c565b60405180910390a1565b620002146200025960201b60201c565b1562000257576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200024e906200039a565b60405180910390fd5b565b60008060149054906101000a900460ff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002a18262000274565b9050919050565b620002b38162000294565b8114620002bf57600080fd5b50565b600081519050620002d381620002a8565b92915050565b600060208284031215620002f257620002f16200026f565b5b60006200030284828501620002c2565b91505092915050565b620003168162000294565b82525050565b60006020820190506200033360008301846200030b565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006200038260108362000339565b91506200038f826200034a565b602082019050919050565b60006020820190508181036000830152620003b58162000373565b9050919050565b608051611c6c620003df60003960008181610b940152610c970152611c6c6000f3fe608060405234801561001057600080fd5b50600436106101155760003560e01c806397b9967e116100a2578063b0bb003111610071578063b0bb00311461026c578063f2fde38b14610288578063f3fef3a3146102a4578063f69e2046146102c0578063fc0c546a146102ca57610115565b806397b9967e146101fa578063ac4afa3814610216578063ac67e1af14610246578063adc9772e1461025057610115565b80634e71d92d116100e95780634e71d92d146101a05780635c975abb146101aa5780635e4c57a4146101c8578063715018a6146101d25780638da5cb5b146101dc57610115565b80628cc2621461011a57806316114acd1461014a5780632716ae66146101665780633b7d094614610184575b600080fd5b610134600480360381019061012f9190611380565b6102e8565b60405161014191906113c6565b60405180910390f35b610164600480360381019061015f9190611380565b6103de565b005b61016e6104e8565b60405161017b91906113c6565b60405180910390f35b61019e60048036038101906101999190611380565b6104ee565b005b6101a861069b565b005b6101b2610781565b6040516101bf91906113fc565b60405180910390f35b6101d0610797565b005b6101da6107a9565b005b6101e46107bd565b6040516101f19190611426565b60405180910390f35b610214600480360381019061020f9190611380565b6107e6565b005b610230600480360381019061022b919061146d565b6107fa565b60405161023d9190611426565b60405180910390f35b61024e610839565b005b61026a6004803603810190610265919061149a565b61084b565b005b61028660048036038101906102819190611506565b61087b565b005b6102a2600480360381019061029d9190611380565b6109f0565b005b6102be60048036038101906102b9919061149a565b610a73565b005b6102c8610a99565b005b6102d2610c95565b6040516102df91906115a5565b60405180910390f35b600080600090505b6003548110156103d8576103c360028281548110610311576103106115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16628cc262856040518263ffffffff1660e01b81526004016103739190611426565b602060405180830381865afa158015610390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b49190611604565b83610cb990919063ffffffff16565b915080806103d090611660565b9150506102f0565b50919050565b6103e6610ccf565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61040a6107bd565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104439190611426565b602060405180830381865afa158015610460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104849190611604565b6040518363ffffffff1660e01b81526004016104a19291906116a8565b6020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e491906116e6565b5050565b60035481565b6104f6610ccf565b60005b600354811015610697578173ffffffffffffffffffffffffffffffffffffffff166002828154811061052e5761052d6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361068457600260016002805490506105889190611713565b81548110610599576105986115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600282815481106105d8576105d76115c0565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061063257610631611747565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556003600081548092919061067a90611776565b9190505550610697565b808061068f90611660565b9150506104f9565b5050565b6106a3610d4d565b60005b60035481101561077657600281815481106106c4576106c36115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166392fd2daf610712610d9c565b60006040518363ffffffff1660e01b815260040161073192919061179f565b600060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b50505050808061076e90611660565b9150506106a6565b5061077f610da4565b565b60008060149054906101000a900460ff16905090565b61079f610ccf565b6107a7610dad565b565b6107b1610ccf565b6107bb6000610e0f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107ee610ccf565b6107f781610ed3565b50565b6002818154811061080a57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610841610ccf565b610849610f86565b565b610853610fe9565b61085b610d4d565b61086f82610867610d9c565b836000611033565b610877610da4565b5050565b610883610ccf565b6000805b60035481101561091e578373ffffffffffffffffffffffffffffffffffffffff16600282815481106108bc576108bb6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361090b576001915061091e565b808061091690611660565b915050610887565b508015610960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095790611825565b60405180910390fd5b6002839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360008154809291906109d690611660565b919050555081156109eb576109ea83610ed3565b5b505050565b6109f8610ccf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e906118b7565b60405180910390fd5b610a7081610e0f565b50565b610a7b610d4d565b610a8d82610a87610d9c565b83611185565b610a95610da4565b5050565b610aa1610d4d565b6000610ab3610aae610d9c565b6102e8565b90506000811115610c8a5760005b600354811015610b915760028181548110610adf57610ade6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166392fd2daf610b2d610d9c565b60016040518363ffffffff1660e01b8152600401610b4c92919061179f565b600060405180830381600087803b158015610b6657600080fd5b505af1158015610b7a573d6000803e3d6000fd5b505050508080610b8990611660565b915050610ac1565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610c0f9291906116a8565b6020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5291906116e6565b50610c89600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610c81610d9c565b836001611033565b5b50610c93610da4565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008183610cc791906118d7565b905092915050565b610cd7610d9c565b73ffffffffffffffffffffffffffffffffffffffff16610cf56107bd565b73ffffffffffffffffffffffffffffffffffffffff1614610d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4290611957565b60405180910390fd5b565b600260015403610d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d89906119c3565b60405180910390fd5b6002600181905550565b600033905090565b60018081905550565b610db56112d4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610df8610d9c565b604051610e059190611426565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3990611a2f565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610f8e610fe9565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fd2610d9c565b604051610fdf9190611426565b60405180910390a1565b610ff1610781565b15611031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102890611a9b565b60405180910390fd5b565b6000805b6003548110156110ce578573ffffffffffffffffffffffffffffffffffffffff166002828154811061106c5761106b6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036110bb57600191506110ce565b80806110c690611660565b915050611037565b508061110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110690611b07565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1663995846bd8585856040518463ffffffff1660e01b815260040161114c93929190611b27565b600060405180830381600087803b15801561116657600080fd5b505af115801561117a573d6000803e3d6000fd5b505050505050505050565b6000805b600354811015611220578473ffffffffffffffffffffffffffffffffffffffff16600282815481106111be576111bd6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361120d5760019150611220565b808061121890611660565b915050611189565b5080611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890611baa565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1663f3fef3a384846040518363ffffffff1660e01b815260040161129c9291906116a8565b600060405180830381600087803b1580156112b657600080fd5b505af11580156112ca573d6000803e3d6000fd5b5050505050505050565b6112dc610781565b61131b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131290611c16565b60405180910390fd5b565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061134d82611322565b9050919050565b61135d81611342565b811461136857600080fd5b50565b60008135905061137a81611354565b92915050565b6000602082840312156113965761139561131d565b5b60006113a48482850161136b565b91505092915050565b6000819050919050565b6113c0816113ad565b82525050565b60006020820190506113db60008301846113b7565b92915050565b60008115159050919050565b6113f6816113e1565b82525050565b600060208201905061141160008301846113ed565b92915050565b61142081611342565b82525050565b600060208201905061143b6000830184611417565b92915050565b61144a816113ad565b811461145557600080fd5b50565b60008135905061146781611441565b92915050565b6000602082840312156114835761148261131d565b5b600061149184828501611458565b91505092915050565b600080604083850312156114b1576114b061131d565b5b60006114bf8582860161136b565b92505060206114d085828601611458565b9150509250929050565b6114e3816113e1565b81146114ee57600080fd5b50565b600081359050611500816114da565b92915050565b6000806040838503121561151d5761151c61131d565b5b600061152b8582860161136b565b925050602061153c858286016114f1565b9150509250929050565b6000819050919050565b600061156b61156661156184611322565b611546565b611322565b9050919050565b600061157d82611550565b9050919050565b600061158f82611572565b9050919050565b61159f81611584565b82525050565b60006020820190506115ba6000830184611596565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506115fe81611441565b92915050565b60006020828403121561161a5761161961131d565b5b6000611628848285016115ef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061166b826113ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361169d5761169c611631565b5b600182019050919050565b60006040820190506116bd6000830185611417565b6116ca60208301846113b7565b9392505050565b6000815190506116e0816114da565b92915050565b6000602082840312156116fc576116fb61131d565b5b600061170a848285016116d1565b91505092915050565b600061171e826113ad565b9150611729836113ad565b925082820390508181111561174157611740611631565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000611781826113ad565b91506000820361179457611793611631565b5b600182039050919050565b60006040820190506117b46000830185611417565b6117c160208301846113ed565b9392505050565b600082825260208201905092915050565b7f506f6f6c20616c72656164792065786973747300000000000000000000000000600082015250565b600061180f6013836117c8565b915061181a826117d9565b602082019050919050565b6000602082019050818103600083015261183e81611802565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006118a16026836117c8565b91506118ac82611845565b604082019050919050565b600060208201905081810360008301526118d081611894565b9050919050565b60006118e2826113ad565b91506118ed836113ad565b925082820190508082111561190557611904611631565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006119416020836117c8565b915061194c8261190b565b602082019050919050565b6000602082019050818103600083015261197081611934565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006119ad601f836117c8565b91506119b882611977565b602082019050919050565b600060208201905081810360008301526119dc816119a0565b9050919050565b7f496e76616c69642073696e676c6520617373657420706f6f6c00000000000000600082015250565b6000611a196019836117c8565b9150611a24826119e3565b602082019050919050565b60006020820190508181036000830152611a4881611a0c565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611a856010836117c8565b9150611a9082611a4f565b602082019050919050565b60006020820190508181036000830152611ab481611a78565b9050919050565b7f506f6f6c20646f65736e27742065786973747300000000000000000000000000600082015250565b6000611af16013836117c8565b9150611afc82611abb565b602082019050919050565b60006020820190508181036000830152611b2081611ae4565b9050919050565b6000606082019050611b3c6000830186611417565b611b4960208301856113b7565b611b5660408301846113ed565b949350505050565b7f506f6f6c20646f65736e27742065786973740000000000000000000000000000600082015250565b6000611b946012836117c8565b9150611b9f82611b5e565b602082019050919050565b60006020820190508181036000830152611bc381611b87565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611c006014836117c8565b9150611c0b82611bca565b602082019050919050565b60006020820190508181036000830152611c2f81611bf3565b905091905056fea2646970667358221220518d8a57a8e81fc7b190efd9c0c2d301ff1f641932d8687f5d8a46d7e9fb5d2364736f6c63430008130033000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101155760003560e01c806397b9967e116100a2578063b0bb003111610071578063b0bb00311461026c578063f2fde38b14610288578063f3fef3a3146102a4578063f69e2046146102c0578063fc0c546a146102ca57610115565b806397b9967e146101fa578063ac4afa3814610216578063ac67e1af14610246578063adc9772e1461025057610115565b80634e71d92d116100e95780634e71d92d146101a05780635c975abb146101aa5780635e4c57a4146101c8578063715018a6146101d25780638da5cb5b146101dc57610115565b80628cc2621461011a57806316114acd1461014a5780632716ae66146101665780633b7d094614610184575b600080fd5b610134600480360381019061012f9190611380565b6102e8565b60405161014191906113c6565b60405180910390f35b610164600480360381019061015f9190611380565b6103de565b005b61016e6104e8565b60405161017b91906113c6565b60405180910390f35b61019e60048036038101906101999190611380565b6104ee565b005b6101a861069b565b005b6101b2610781565b6040516101bf91906113fc565b60405180910390f35b6101d0610797565b005b6101da6107a9565b005b6101e46107bd565b6040516101f19190611426565b60405180910390f35b610214600480360381019061020f9190611380565b6107e6565b005b610230600480360381019061022b919061146d565b6107fa565b60405161023d9190611426565b60405180910390f35b61024e610839565b005b61026a6004803603810190610265919061149a565b61084b565b005b61028660048036038101906102819190611506565b61087b565b005b6102a2600480360381019061029d9190611380565b6109f0565b005b6102be60048036038101906102b9919061149a565b610a73565b005b6102c8610a99565b005b6102d2610c95565b6040516102df91906115a5565b60405180910390f35b600080600090505b6003548110156103d8576103c360028281548110610311576103106115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16628cc262856040518263ffffffff1660e01b81526004016103739190611426565b602060405180830381865afa158015610390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b49190611604565b83610cb990919063ffffffff16565b915080806103d090611660565b9150506102f0565b50919050565b6103e6610ccf565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61040a6107bd565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104439190611426565b602060405180830381865afa158015610460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104849190611604565b6040518363ffffffff1660e01b81526004016104a19291906116a8565b6020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e491906116e6565b5050565b60035481565b6104f6610ccf565b60005b600354811015610697578173ffffffffffffffffffffffffffffffffffffffff166002828154811061052e5761052d6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361068457600260016002805490506105889190611713565b81548110610599576105986115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600282815481106105d8576105d76115c0565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061063257610631611747565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556003600081548092919061067a90611776565b9190505550610697565b808061068f90611660565b9150506104f9565b5050565b6106a3610d4d565b60005b60035481101561077657600281815481106106c4576106c36115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166392fd2daf610712610d9c565b60006040518363ffffffff1660e01b815260040161073192919061179f565b600060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b50505050808061076e90611660565b9150506106a6565b5061077f610da4565b565b60008060149054906101000a900460ff16905090565b61079f610ccf565b6107a7610dad565b565b6107b1610ccf565b6107bb6000610e0f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107ee610ccf565b6107f781610ed3565b50565b6002818154811061080a57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610841610ccf565b610849610f86565b565b610853610fe9565b61085b610d4d565b61086f82610867610d9c565b836000611033565b610877610da4565b5050565b610883610ccf565b6000805b60035481101561091e578373ffffffffffffffffffffffffffffffffffffffff16600282815481106108bc576108bb6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361090b576001915061091e565b808061091690611660565b915050610887565b508015610960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095790611825565b60405180910390fd5b6002839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360008154809291906109d690611660565b919050555081156109eb576109ea83610ed3565b5b505050565b6109f8610ccf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e906118b7565b60405180910390fd5b610a7081610e0f565b50565b610a7b610d4d565b610a8d82610a87610d9c565b83611185565b610a95610da4565b5050565b610aa1610d4d565b6000610ab3610aae610d9c565b6102e8565b90506000811115610c8a5760005b600354811015610b915760028181548110610adf57610ade6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166392fd2daf610b2d610d9c565b60016040518363ffffffff1660e01b8152600401610b4c92919061179f565b600060405180830381600087803b158015610b6657600080fd5b505af1158015610b7a573d6000803e3d6000fd5b505050508080610b8990611660565b915050610ac1565b507f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96973ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610c0f9291906116a8565b6020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5291906116e6565b50610c89600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610c81610d9c565b836001611033565b5b50610c93610da4565b565b7f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96981565b60008183610cc791906118d7565b905092915050565b610cd7610d9c565b73ffffffffffffffffffffffffffffffffffffffff16610cf56107bd565b73ffffffffffffffffffffffffffffffffffffffff1614610d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4290611957565b60405180910390fd5b565b600260015403610d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d89906119c3565b60405180910390fd5b6002600181905550565b600033905090565b60018081905550565b610db56112d4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610df8610d9c565b604051610e059190611426565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3990611a2f565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610f8e610fe9565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fd2610d9c565b604051610fdf9190611426565b60405180910390a1565b610ff1610781565b15611031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102890611a9b565b60405180910390fd5b565b6000805b6003548110156110ce578573ffffffffffffffffffffffffffffffffffffffff166002828154811061106c5761106b6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036110bb57600191506110ce565b80806110c690611660565b915050611037565b508061110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110690611b07565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1663995846bd8585856040518463ffffffff1660e01b815260040161114c93929190611b27565b600060405180830381600087803b15801561116657600080fd5b505af115801561117a573d6000803e3d6000fd5b505050505050505050565b6000805b600354811015611220578473ffffffffffffffffffffffffffffffffffffffff16600282815481106111be576111bd6115c0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361120d5760019150611220565b808061121890611660565b915050611189565b5080611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890611baa565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1663f3fef3a384846040518363ffffffff1660e01b815260040161129c9291906116a8565b600060405180830381600087803b1580156112b657600080fd5b505af11580156112ca573d6000803e3d6000fd5b5050505050505050565b6112dc610781565b61131b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131290611c16565b60405180910390fd5b565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061134d82611322565b9050919050565b61135d81611342565b811461136857600080fd5b50565b60008135905061137a81611354565b92915050565b6000602082840312156113965761139561131d565b5b60006113a48482850161136b565b91505092915050565b6000819050919050565b6113c0816113ad565b82525050565b60006020820190506113db60008301846113b7565b92915050565b60008115159050919050565b6113f6816113e1565b82525050565b600060208201905061141160008301846113ed565b92915050565b61142081611342565b82525050565b600060208201905061143b6000830184611417565b92915050565b61144a816113ad565b811461145557600080fd5b50565b60008135905061146781611441565b92915050565b6000602082840312156114835761148261131d565b5b600061149184828501611458565b91505092915050565b600080604083850312156114b1576114b061131d565b5b60006114bf8582860161136b565b92505060206114d085828601611458565b9150509250929050565b6114e3816113e1565b81146114ee57600080fd5b50565b600081359050611500816114da565b92915050565b6000806040838503121561151d5761151c61131d565b5b600061152b8582860161136b565b925050602061153c858286016114f1565b9150509250929050565b6000819050919050565b600061156b61156661156184611322565b611546565b611322565b9050919050565b600061157d82611550565b9050919050565b600061158f82611572565b9050919050565b61159f81611584565b82525050565b60006020820190506115ba6000830184611596565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506115fe81611441565b92915050565b60006020828403121561161a5761161961131d565b5b6000611628848285016115ef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061166b826113ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361169d5761169c611631565b5b600182019050919050565b60006040820190506116bd6000830185611417565b6116ca60208301846113b7565b9392505050565b6000815190506116e0816114da565b92915050565b6000602082840312156116fc576116fb61131d565b5b600061170a848285016116d1565b91505092915050565b600061171e826113ad565b9150611729836113ad565b925082820390508181111561174157611740611631565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000611781826113ad565b91506000820361179457611793611631565b5b600182039050919050565b60006040820190506117b46000830185611417565b6117c160208301846113ed565b9392505050565b600082825260208201905092915050565b7f506f6f6c20616c72656164792065786973747300000000000000000000000000600082015250565b600061180f6013836117c8565b915061181a826117d9565b602082019050919050565b6000602082019050818103600083015261183e81611802565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006118a16026836117c8565b91506118ac82611845565b604082019050919050565b600060208201905081810360008301526118d081611894565b9050919050565b60006118e2826113ad565b91506118ed836113ad565b925082820190508082111561190557611904611631565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006119416020836117c8565b915061194c8261190b565b602082019050919050565b6000602082019050818103600083015261197081611934565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006119ad601f836117c8565b91506119b882611977565b602082019050919050565b600060208201905081810360008301526119dc816119a0565b9050919050565b7f496e76616c69642073696e676c6520617373657420706f6f6c00000000000000600082015250565b6000611a196019836117c8565b9150611a24826119e3565b602082019050919050565b60006020820190508181036000830152611a4881611a0c565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611a856010836117c8565b9150611a9082611a4f565b602082019050919050565b60006020820190508181036000830152611ab481611a78565b9050919050565b7f506f6f6c20646f65736e27742065786973747300000000000000000000000000600082015250565b6000611af16013836117c8565b9150611afc82611abb565b602082019050919050565b60006020820190508181036000830152611b2081611ae4565b9050919050565b6000606082019050611b3c6000830186611417565b611b4960208301856113b7565b611b5660408301846113ed565b949350505050565b7f506f6f6c20646f65736e27742065786973740000000000000000000000000000600082015250565b6000611b946012836117c8565b9150611b9f82611b5e565b602082019050919050565b60006020820190508181036000830152611bc381611b87565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611c006014836117c8565b9150611c0b82611bca565b602082019050919050565b60006020820190508181036000830152611c2f81611bf3565b905091905056fea2646970667358221220518d8a57a8e81fc7b190efd9c0c2d301ff1f641932d8687f5d8a46d7e9fb5d2364736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969
-----Decoded View---------------
Arg [0] : _token (address): 0xf70E5E46A50bba54917D9Cb7aEB8b83610bCd969
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.