More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 440 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 21196937 | 8 days ago | IN | 0 ETH | 0.00123791 | ||||
Withdraw | 21184438 | 9 days ago | IN | 0 ETH | 0.00247475 | ||||
Withdraw | 20172475 | 151 days ago | IN | 0 ETH | 0.00017088 | ||||
Withdraw | 20065610 | 166 days ago | IN | 0 ETH | 0.00158239 | ||||
Withdraw | 20046915 | 168 days ago | IN | 0 ETH | 0.00034833 | ||||
Withdraw | 20038665 | 169 days ago | IN | 0 ETH | 0.00118667 | ||||
Withdraw | 20037770 | 169 days ago | IN | 0 ETH | 0.00057457 | ||||
Withdraw | 20036843 | 170 days ago | IN | 0 ETH | 0.00058438 | ||||
Withdraw | 20036289 | 170 days ago | IN | 0 ETH | 0.00074773 | ||||
Withdraw | 20031026 | 170 days ago | IN | 0 ETH | 0.00059642 | ||||
Withdraw | 20029115 | 171 days ago | IN | 0 ETH | 0.00196623 | ||||
Withdraw | 20025746 | 171 days ago | IN | 0 ETH | 0.00134259 | ||||
Withdraw | 20025647 | 171 days ago | IN | 0 ETH | 0.00124565 | ||||
Withdraw | 20023930 | 171 days ago | IN | 0 ETH | 0.00042609 | ||||
Withdraw | 20023709 | 171 days ago | IN | 0 ETH | 0.00052176 | ||||
Withdraw | 20023480 | 171 days ago | IN | 0 ETH | 0.00054385 | ||||
Withdraw | 20022557 | 172 days ago | IN | 0 ETH | 0.00055389 | ||||
Withdraw | 20022550 | 172 days ago | IN | 0 ETH | 0.00072205 | ||||
Stake | 20022530 | 172 days ago | IN | 0 ETH | 0.00081738 | ||||
Withdraw | 20022497 | 172 days ago | IN | 0 ETH | 0.00055147 | ||||
Stake | 20022497 | 172 days ago | IN | 0 ETH | 0.00079773 | ||||
Stake | 20022493 | 172 days ago | IN | 0 ETH | 0.00074005 | ||||
Stake | 20022343 | 172 days ago | IN | 0 ETH | 0.00046063 | ||||
Stake | 20022303 | 172 days ago | IN | 0 ETH | 0.00038571 | ||||
Stake | 20022063 | 172 days ago | IN | 0 ETH | 0.0004529 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CobakStake
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-04-30 */ // File: @openzeppelin/[email protected]/token/ERC20/IERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); } // File: @openzeppelin/[email protected]/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * ==== * * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/[email protected]/token/ERC20/utils/SafeERC20Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @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 SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable 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( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/[email protected]/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } } // File: @openzeppelin/[email protected]/utils/ContextUpgradeable.sol // 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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/access/OwnableUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/[email protected]/security/ReentrancyGuardUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: CobakStake.sol pragma solidity ^0.8.3; contract CobakStake is OwnableUpgradeable, ReentrancyGuardUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; event Stake(address indexed wallet, uint256 amount); event Withdraw(address indexed wallet, uint256 amount); event ERC20TokensRemoved(address indexed tokenAddress, address indexed receiver, uint256 amount); mapping(address => uint256) public balances; uint256 public totalStaked; address public stakingToken; function initialize(address _stakingToken) external initializer { stakingToken = _stakingToken; __Ownable_init(); __ReentrancyGuard_init(); } /** msg.sender external view convenience functions *********************************/ /** public external view functions (also used internally) **************************/ /** * add stake token to staking pool * @dev requires the token to be approved for transfer * @dev we assume that (our) stake token is not malicious, so no special checks * @param _amount of token to be staked */ function _stake(uint256 _amount) internal returns (uint256) { require(_amount > 0, "stake amount must be > 0"); balances[msg.sender] += _amount; totalStaked += _amount; // using SafeERC20 for IERC20Upgradeable => will revert in case of error IERC20Upgradeable(stakingToken).safeTransferFrom(msg.sender, address(this), _amount); emit Stake(msg.sender, _amount); return _amount; } /** * withdraw staked token, ... * do not withdraw rewards token (it might not be worth the gas) * @return amount of tokens sent to user's account */ function _withdraw(uint256 amount) internal returns (uint256) { require(amount > 0, "amount to withdraw not > 0"); require(amount <= balances[msg.sender], "withdraw amount > staked amount"); balances[msg.sender] -= amount; totalStaked -= amount; // using SafeERC20 for IERC20Upgradeable => will revert in case of error IERC20Upgradeable(stakingToken).safeTransfer(msg.sender, amount); emit Withdraw(msg.sender, amount); return amount; } function stake(uint256 _amount) external nonReentrant returns (uint256) { return _stake(_amount); } function withdraw(uint256 amount) external nonReentrant returns (uint256) { return _withdraw(amount); } function withdrawAll() external nonReentrant returns (uint256) { return _withdraw(balances[msg.sender]); } /** * Do not accept accidently sent ETH : * If neither a receive Ether nor a payable fallback function is present, * the contract cannot receive Ether through regular transactions and throws an exception. * https://docs.soliditylang.org/en/v0.8.7/contracts.html#receive-ether-function */ /** * @notice withdraw accidently sent ERC20 tokens * @param _tokenAddress address of token to withdraw */ function removeOtherERC20Tokens(address _tokenAddress) external onlyOwner { require(_tokenAddress != address(stakingToken), "can not withdraw staking token"); uint256 balance = IERC20Upgradeable(_tokenAddress).balanceOf(address(this)); IERC20Upgradeable(_tokenAddress).safeTransfer(msg.sender, balance); emit ERC20TokensRemoved(_tokenAddress, msg.sender, balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20TokensRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"removeOtherERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50610e43806100206000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063817b1cd211610071578063817b1cd21461013c578063853828b6146101455780638da5cb5b1461014d578063a694fc3a1461015e578063c4d66de814610171578063f2fde38b1461018457600080fd5b806327e235e3146100ae5780632e1a7d4d146100e15780635951eff1146100f4578063715018a61461010957806372f702f314610111575b600080fd5b6100ce6100bc366004610bcb565b60976020526000908152604090205481565b6040519081526020015b60405180910390f35b6100ce6100ef366004610c16565b610197565b610107610102366004610bcb565b6101de565b005b61010761033a565b609954610124906001600160a01b031681565b6040516001600160a01b0390911681526020016100d8565b6100ce60985481565b6100ce610370565b6033546001600160a01b0316610124565b6100ce61016c366004610c16565b6103bd565b61010761017f366004610bcb565b6103f0565b610107610192366004610bcb565b610489565b6000600260655414156101c55760405162461bcd60e51b81526004016101bc90610d65565b60405180910390fd5b60026065556101d382610524565b600160655592915050565b6033546001600160a01b031633146102085760405162461bcd60e51b81526004016101bc90610ce5565b6099546001600160a01b03828116911614156102665760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177207374616b696e6720746f6b656e000060448201526064016101bc565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156102a857600080fd5b505afa1580156102bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e09190610c2f565b90506102f66001600160a01b0383163383610662565b60405181815233906001600160a01b038416907f4c9443772ec3472e2ea8a88e5c31e6bb75e94541dc672d5ca2a1197ada10b5989060200160405180910390a35050565b6033546001600160a01b031633146103645760405162461bcd60e51b81526004016101bc90610ce5565b61036e60006106ca565b565b6000600260655414156103955760405162461bcd60e51b81526004016101bc90610d65565b6002606555336000908152609760205260409020546103b390610524565b9050600160655590565b6000600260655414156103e25760405162461bcd60e51b81526004016101bc90610d65565b60026065556101d38261071c565b60006103fc60016107f4565b90508015610414576000805461ff0019166101001790555b609980546001600160a01b0319166001600160a01b03841617905561043761087c565b61043f6108ab565b8015610485576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b6033546001600160a01b031633146104b35760405162461bcd60e51b81526004016101bc90610ce5565b6001600160a01b0381166105185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101bc565b610521816106ca565b50565b60008082116105755760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e7420746f207769746864726177206e6f74203e203000000000000060448201526064016101bc565b336000908152609760205260409020548211156105d45760405162461bcd60e51b815260206004820152601f60248201527f776974686472617720616d6f756e74203e207374616b656420616d6f756e740060448201526064016101bc565b33600090815260976020526040812080548492906105f3908490610db4565b92505081905550816098600082825461060c9190610db4565b9091555050609954610628906001600160a01b03163384610662565b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25090565b6040516001600160a01b0383166024820152604481018290526106c590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108da565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080821161076d5760405162461bcd60e51b815260206004820152601860248201527f7374616b6520616d6f756e74206d757374206265203e2030000000000000000060448201526064016101bc565b336000908152609760205260408120805484929061078c908490610d9c565b9250508190555081609860008282546107a59190610d9c565b90915550506099546107c2906001600160a01b03163330856109ac565b60405182815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a90602001610656565b60008054610100900460ff161561083b578160ff1660011480156108175750303b155b6108335760405162461bcd60e51b81526004016101bc90610c97565b506000919050565b60005460ff8084169116106108625760405162461bcd60e51b81526004016101bc90610c97565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff166108a35760405162461bcd60e51b81526004016101bc90610d1a565b61036e6109ea565b600054610100900460ff166108d25760405162461bcd60e51b81526004016101bc90610d1a565b61036e610a1a565b600061092f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a489092919063ffffffff16565b8051909150156106c5578080602001905181019061094d9190610bf4565b6106c55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101bc565b6040516001600160a01b03808516602483015283166044820152606481018290526109e49085906323b872dd60e01b9060840161068e565b50505050565b600054610100900460ff16610a115760405162461bcd60e51b81526004016101bc90610d1a565b61036e336106ca565b600054610100900460ff16610a415760405162461bcd60e51b81526004016101bc90610d1a565b6001606555565b6060610a578484600085610a61565b90505b9392505050565b606082471015610ac25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101bc565b6001600160a01b0385163b610b195760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101bc565b600080866001600160a01b03168587604051610b359190610c48565b60006040518083038185875af1925050503d8060008114610b72576040519150601f19603f3d011682016040523d82523d6000602084013e610b77565b606091505b5091509150610b87828286610b92565b979650505050505050565b60608315610ba1575081610a5a565b825115610bb15782518084602001fd5b8160405162461bcd60e51b81526004016101bc9190610c64565b600060208284031215610bdd57600080fd5b81356001600160a01b0381168114610a5a57600080fd5b600060208284031215610c0657600080fd5b81518015158114610a5a57600080fd5b600060208284031215610c2857600080fd5b5035919050565b600060208284031215610c4157600080fd5b5051919050565b60008251610c5a818460208701610dcb565b9190910192915050565b6020815260008251806020840152610c83816040850160208701610dcb565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115610daf57610daf610df7565b500190565b600082821015610dc657610dc6610df7565b500390565b60005b83811015610de6578181015183820152602001610dce565b838111156109e45750506000910152565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220dff8c739cf3ac4a6fc133524c2a67c88cdf350c171e0112bc670d8205150bba464736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063817b1cd211610071578063817b1cd21461013c578063853828b6146101455780638da5cb5b1461014d578063a694fc3a1461015e578063c4d66de814610171578063f2fde38b1461018457600080fd5b806327e235e3146100ae5780632e1a7d4d146100e15780635951eff1146100f4578063715018a61461010957806372f702f314610111575b600080fd5b6100ce6100bc366004610bcb565b60976020526000908152604090205481565b6040519081526020015b60405180910390f35b6100ce6100ef366004610c16565b610197565b610107610102366004610bcb565b6101de565b005b61010761033a565b609954610124906001600160a01b031681565b6040516001600160a01b0390911681526020016100d8565b6100ce60985481565b6100ce610370565b6033546001600160a01b0316610124565b6100ce61016c366004610c16565b6103bd565b61010761017f366004610bcb565b6103f0565b610107610192366004610bcb565b610489565b6000600260655414156101c55760405162461bcd60e51b81526004016101bc90610d65565b60405180910390fd5b60026065556101d382610524565b600160655592915050565b6033546001600160a01b031633146102085760405162461bcd60e51b81526004016101bc90610ce5565b6099546001600160a01b03828116911614156102665760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177207374616b696e6720746f6b656e000060448201526064016101bc565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156102a857600080fd5b505afa1580156102bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e09190610c2f565b90506102f66001600160a01b0383163383610662565b60405181815233906001600160a01b038416907f4c9443772ec3472e2ea8a88e5c31e6bb75e94541dc672d5ca2a1197ada10b5989060200160405180910390a35050565b6033546001600160a01b031633146103645760405162461bcd60e51b81526004016101bc90610ce5565b61036e60006106ca565b565b6000600260655414156103955760405162461bcd60e51b81526004016101bc90610d65565b6002606555336000908152609760205260409020546103b390610524565b9050600160655590565b6000600260655414156103e25760405162461bcd60e51b81526004016101bc90610d65565b60026065556101d38261071c565b60006103fc60016107f4565b90508015610414576000805461ff0019166101001790555b609980546001600160a01b0319166001600160a01b03841617905561043761087c565b61043f6108ab565b8015610485576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b6033546001600160a01b031633146104b35760405162461bcd60e51b81526004016101bc90610ce5565b6001600160a01b0381166105185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101bc565b610521816106ca565b50565b60008082116105755760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e7420746f207769746864726177206e6f74203e203000000000000060448201526064016101bc565b336000908152609760205260409020548211156105d45760405162461bcd60e51b815260206004820152601f60248201527f776974686472617720616d6f756e74203e207374616b656420616d6f756e740060448201526064016101bc565b33600090815260976020526040812080548492906105f3908490610db4565b92505081905550816098600082825461060c9190610db4565b9091555050609954610628906001600160a01b03163384610662565b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25090565b6040516001600160a01b0383166024820152604481018290526106c590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108da565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080821161076d5760405162461bcd60e51b815260206004820152601860248201527f7374616b6520616d6f756e74206d757374206265203e2030000000000000000060448201526064016101bc565b336000908152609760205260408120805484929061078c908490610d9c565b9250508190555081609860008282546107a59190610d9c565b90915550506099546107c2906001600160a01b03163330856109ac565b60405182815233907febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a90602001610656565b60008054610100900460ff161561083b578160ff1660011480156108175750303b155b6108335760405162461bcd60e51b81526004016101bc90610c97565b506000919050565b60005460ff8084169116106108625760405162461bcd60e51b81526004016101bc90610c97565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff166108a35760405162461bcd60e51b81526004016101bc90610d1a565b61036e6109ea565b600054610100900460ff166108d25760405162461bcd60e51b81526004016101bc90610d1a565b61036e610a1a565b600061092f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a489092919063ffffffff16565b8051909150156106c5578080602001905181019061094d9190610bf4565b6106c55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101bc565b6040516001600160a01b03808516602483015283166044820152606481018290526109e49085906323b872dd60e01b9060840161068e565b50505050565b600054610100900460ff16610a115760405162461bcd60e51b81526004016101bc90610d1a565b61036e336106ca565b600054610100900460ff16610a415760405162461bcd60e51b81526004016101bc90610d1a565b6001606555565b6060610a578484600085610a61565b90505b9392505050565b606082471015610ac25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101bc565b6001600160a01b0385163b610b195760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101bc565b600080866001600160a01b03168587604051610b359190610c48565b60006040518083038185875af1925050503d8060008114610b72576040519150601f19603f3d011682016040523d82523d6000602084013e610b77565b606091505b5091509150610b87828286610b92565b979650505050505050565b60608315610ba1575081610a5a565b825115610bb15782518084602001fd5b8160405162461bcd60e51b81526004016101bc9190610c64565b600060208284031215610bdd57600080fd5b81356001600160a01b0381168114610a5a57600080fd5b600060208284031215610c0657600080fd5b81518015158114610a5a57600080fd5b600060208284031215610c2857600080fd5b5035919050565b600060208284031215610c4157600080fd5b5051919050565b60008251610c5a818460208701610dcb565b9190910192915050565b6020815260008251806020840152610c83816040850160208701610dcb565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115610daf57610daf610df7565b500190565b600082821015610dc657610dc6610df7565b500390565b60005b83811015610de6578181015183820152602001610dce565b838111156109e45750506000910152565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220dff8c739cf3ac4a6fc133524c2a67c88cdf350c171e0112bc670d8205150bba464736f6c63430008070033
Deployed Bytecode Sourcemap
28660:3506:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29020:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;7398:25:1;;;7386:2;7371:18;29020:43:0;;;;;;;;31048:117;;;;;;:::i;:::-;;:::i;31756:407::-;;;;;;:::i;:::-;;:::i;:::-;;24185:103;;;:::i;29108:27::-;;;;;-1:-1:-1;;;;;29108:27:0;;;;;;-1:-1:-1;;;;;1404:32:1;;;1386:51;;1374:2;1359:18;29108:27:0;1240:203:1;29072:26:0;;;;;;31173:120;;;:::i;23534:87::-;23607:6;;-1:-1:-1;;;;;23607:6:0;23534:87;;30927:113;;;;;;:::i;:::-;;:::i;29145:173::-;;;;;;:::i;:::-;;:::i;24443:201::-;;;;;;:::i;:::-;;:::i;31048:117::-;31113:7;27172:1;27947:7;;:19;;27939:63;;;;-1:-1:-1;;;27939:63:0;;;;;;;:::i;:::-;;;;;;;;;27172:1;28080:7;:18;31140:17:::1;31150:6:::0;31140:9:::1;:17::i;:::-;27128:1:::0;28259:7;:22;31133:24;31048:117;-1:-1:-1;;31048:117:0:o;31756:407::-;23607:6;;-1:-1:-1;;;;;23607:6:0;21818:10;23754:23;23746:68;;;;-1:-1:-1;;;23746:68:0;;;;;;;:::i;:::-;31874:12:::1;::::0;-1:-1:-1;;;;;31849:38:0;;::::1;31874:12:::0;::::1;31849:38;;31841:81;;;::::0;-1:-1:-1;;;31841:81:0;;5199:2:1;31841:81:0::1;::::0;::::1;5181:21:1::0;5238:2;5218:18;;;5211:30;5277:32;5257:18;;;5250:60;5327:18;;31841:81:0::1;4997:354:1::0;31841:81:0::1;31951:57;::::0;-1:-1:-1;;;31951:57:0;;32002:4:::1;31951:57;::::0;::::1;1386:51:1::0;31933:15:0::1;::::0;-1:-1:-1;;;;;31951:42:0;::::1;::::0;::::1;::::0;1359:18:1;;31951:57:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31933:75:::0;-1:-1:-1;32019:66:0::1;-1:-1:-1::0;;;;;32019:45:0;::::1;32065:10;31933:75:::0;32019:45:::1;:66::i;:::-;32101:54;::::0;7398:25:1;;;32135:10:0::1;::::0;-1:-1:-1;;;;;32101:54:0;::::1;::::0;::::1;::::0;7386:2:1;7371:18;32101:54:0::1;;;;;;;31830:333;31756:407:::0;:::o;24185:103::-;23607:6;;-1:-1:-1;;;;;23607:6:0;21818:10;23754:23;23746:68;;;;-1:-1:-1;;;23746:68:0;;;;;;;:::i;:::-;24250:30:::1;24277:1;24250:18;:30::i;:::-;24185:103::o:0;31173:120::-;31227:7;27172:1;27947:7;;:19;;27939:63;;;;-1:-1:-1;;;27939:63:0;;;;;;;:::i;:::-;27172:1;28080:7;:18;31273:10:::1;31264:20;::::0;;;:8:::1;:20;::::0;;;;;31254:31:::1;::::0;:9:::1;:31::i;:::-;31247:38;;27128:1:::0;28259:7;:22;31173:120;:::o;30927:113::-;30990:7;27172:1;27947:7;;:19;;27939:63;;;;-1:-1:-1;;;27939:63:0;;;;;;;:::i;:::-;27172:1;28080:7;:18;31017:15:::1;31024:7:::0;31017:6:::1;:15::i;29145:173::-:0;17795:19;17817:25;17840:1;17817:22;:25::i;:::-;17795:47;;17857:14;17853:67;;;17888:13;:20;;-1:-1:-1;;17888:20:0;;;;;17853:67;29220:12:::1;:28:::0;;-1:-1:-1;;;;;;29220:28:0::1;-1:-1:-1::0;;;;;29220:28:0;::::1;;::::0;;29259:16:::1;:14;:16::i;:::-;29286:24;:22;:24::i;:::-;17946:14:::0;17942:102;;;17993:5;17977:21;;-1:-1:-1;;17977:21:0;;;18018:14;;-1:-1:-1;2259:36:1;;18018:14:0;;2247:2:1;2232:18;18018:14:0;;;;;;;17942:102;17784:267;29145:173;:::o;24443:201::-;23607:6;;-1:-1:-1;;;;;23607:6:0;21818:10;23754:23;23746:68;;;;-1:-1:-1;;;23746:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;24532:22:0;::::1;24524:73;;;::::0;-1:-1:-1;;;24524:73:0;;2896:2:1;24524:73:0::1;::::0;::::1;2878:21:1::0;2935:2;2915:18;;;2908:30;2974:34;2954:18;;;2947:62;-1:-1:-1;;;3025:18:1;;;3018:36;3071:19;;24524:73:0::1;2694:402:1::0;24524:73:0::1;24608:28;24627:8;24608:18;:28::i;:::-;24443:201:::0;:::o;30399:520::-;30452:7;30489:1;30480:6;:10;30472:49;;;;-1:-1:-1;;;30472:49:0;;5558:2:1;30472:49:0;;;5540:21:1;5597:2;5577:18;;;5570:30;5636:28;5616:18;;;5609:56;5682:18;;30472:49:0;5356:350:1;30472:49:0;30559:10;30550:20;;;;:8;:20;;;;;;30540:30;;;30532:74;;;;-1:-1:-1;;;30532:74:0;;4839:2:1;30532:74:0;;;4821:21:1;4878:2;4858:18;;;4851:30;4917:33;4897:18;;;4890:61;4968:18;;30532:74:0;4637:355:1;30532:74:0;30628:10;30619:20;;;;:8;:20;;;;;:30;;30643:6;;30619:20;:30;;30643:6;;30619:30;:::i;:::-;;;;;;;;30675:6;30660:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;30794:12:0;;30776:64;;-1:-1:-1;;;;;30794:12:0;30821:10;30833:6;30776:44;:64::i;:::-;30858:28;;7398:25:1;;;30867:10:0;;30858:28;;7386:2:1;7371:18;30858:28:0;;;;;;;;-1:-1:-1;30905:6:0;30399:520::o;11236:222::-;11391:58;;-1:-1:-1;;;;;2020:32:1;;11391:58:0;;;2002:51:1;2069:18;;;2062:34;;;11364:86:0;;11384:5;;-1:-1:-1;;;11414:23:0;1975:18:1;;11391:58:0;;;;-1:-1:-1;;11391:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;11391:58:0;-1:-1:-1;;;;;;11391:58:0;;;;;;;;;;11364:19;:86::i;:::-;11236:222;;;:::o;24804:191::-;24897:6;;;-1:-1:-1;;;;;24914:17:0;;;-1:-1:-1;;;;;;24914:17:0;;;;;;;24947:40;;24897:6;;;24914:17;24897:6;;24947:40;;24878:16;;24947:40;24867:128;24804:191;:::o;29760:452::-;29811:7;29849:1;29839:7;:11;29831:48;;;;-1:-1:-1;;;29831:48:0;;3710:2:1;29831:48:0;;;3692:21:1;3749:2;3729:18;;;3722:30;3788:26;3768:18;;;3761:54;3832:18;;29831:48:0;3508:348:1;29831:48:0;29901:10;29892:20;;;;:8;:20;;;;;:31;;29916:7;;29892:20;:31;;29916:7;;29892:31;:::i;:::-;;;;;;;;29949:7;29934:11;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;30069:12:0;;30051:84;;-1:-1:-1;;;;;30069:12:0;30100:10;30120:4;30127:7;30051:48;:84::i;:::-;30153:26;;7398:25:1;;;30159:10:0;;30153:26;;7386:2:1;7371:18;30153:26:0;7252:177:1;20025:823:0;20089:4;20426:13;;;;;;;20422:419;;;20482:7;:12;;20493:1;20482:12;:61;;;;-1:-1:-1;20537:4:0;4489:19;:23;20482:61;20456:169;;;;-1:-1:-1;;;20456:169:0;;;;;;;:::i;:::-;-1:-1:-1;20647:5:0;;20025:823;-1:-1:-1;20025:823:0:o;20422:419::-;20693:12;;:22;;;;:12;;:22;20685:81;;;;-1:-1:-1;;;20685:81:0;;;;;;;:::i;:::-;-1:-1:-1;20781:12:0;:22;;-1:-1:-1;;20781:22:0;;;;;;;;;;;;-1:-1:-1;;20025:823:0:o;23235:97::-;19422:13;;;;;;;19414:69;;;;-1:-1:-1;;;19414:69:0;;;;;;;:::i;:::-;23298:26:::1;:24;:26::i;27214:113::-:0;19422:13;;;;;;;19414:69;;;;-1:-1:-1;;;19414:69:0;;;;;;;:::i;:::-;27285:34:::1;:32;:34::i;13864:727::-:0;14299:23;14325:69;14353:4;14325:69;;;;;;;;;;;;;;;;;14333:5;-1:-1:-1;;;;;14325:27:0;;;:69;;;;;:::i;:::-;14409:17;;14299:95;;-1:-1:-1;14409:21:0;14405:179;;14506:10;14495:30;;;;;;;;;;;;:::i;:::-;14487:85;;;;-1:-1:-1;;;14487:85:0;;6683:2:1;14487:85:0;;;6665:21:1;6722:2;6702:18;;;6695:30;6761:34;6741:18;;;6734:62;-1:-1:-1;;;6812:18:1;;;6805:40;6862:19;;14487:85:0;6481:406:1;11466:259:0;11648:68;;-1:-1:-1;;;;;1706:15:1;;;11648:68:0;;;1688:34:1;1758:15;;1738:18;;;1731:43;1790:18;;;1783:34;;;11621:96:0;;11641:5;;-1:-1:-1;;;11671:27:0;1623:18:1;;11648:68:0;1448:375:1;11621:96:0;11466:259;;;;:::o;23340:113::-;19422:13;;;;;;;19414:69;;;;-1:-1:-1;;;19414:69:0;;;;;;;:::i;:::-;23413:32:::1;21818:10:::0;23413:18:::1;:32::i;27335:111::-:0;19422:13;;;;;;;19414:69;;;;-1:-1:-1;;;19414:69:0;;;;;;;:::i;:::-;27128:1:::1;27416:7;:22:::0;27335:111::o;6939:229::-;7076:12;7108:52;7130:6;7138:4;7144:1;7147:12;7108:21;:52::i;:::-;7101:59;;6939:229;;;;;;:::o;8059:510::-;8229:12;8287:5;8262:21;:30;;8254:81;;;;-1:-1:-1;;;8254:81:0;;3303:2:1;8254:81:0;;;3285:21:1;3342:2;3322:18;;;3315:30;3381:34;3361:18;;;3354:62;-1:-1:-1;;;3432:18:1;;;3425:36;3478:19;;8254:81:0;3101:402:1;8254:81:0;-1:-1:-1;;;;;4489:19:0;;;8346:60;;;;-1:-1:-1;;;8346:60:0;;5913:2:1;8346:60:0;;;5895:21:1;5952:2;5932:18;;;5925:30;5991:31;5971:18;;;5964:59;6040:18;;8346:60:0;5711:353:1;8346:60:0;8420:12;8434:23;8461:6;-1:-1:-1;;;;;8461:11:0;8480:5;8487:4;8461:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8419:73;;;;8510:51;8527:7;8536:10;8548:12;8510:16;:51::i;:::-;8503:58;8059:510;-1:-1:-1;;;;;;;8059:510:0:o;9768:712::-;9918:12;9947:7;9943:530;;;-1:-1:-1;9978:10:0;9971:17;;9943:530;10092:17;;:21;10088:374;;10290:10;10284:17;10351:15;10338:10;10334:2;10330:19;10323:44;10088:374;10433:12;10426:20;;-1:-1:-1;;;10426:20:0;;;;;;;;:::i;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;305:277;372:6;425:2;413:9;404:7;400:23;396:32;393:52;;;441:1;438;431:12;393:52;473:9;467:16;526:5;519:13;512:21;505:5;502:32;492:60;;548:1;545;538:12;587:180;646:6;699:2;687:9;678:7;674:23;670:32;667:52;;;715:1;712;705:12;667:52;-1:-1:-1;738:23:1;;587:180;-1:-1:-1;587:180:1:o;772:184::-;842:6;895:2;883:9;874:7;870:23;866:32;863:52;;;911:1;908;901:12;863:52;-1:-1:-1;934:16:1;;772:184;-1:-1:-1;772:184:1:o;961:274::-;1090:3;1128:6;1122:13;1144:53;1190:6;1185:3;1178:4;1170:6;1166:17;1144:53;:::i;:::-;1213:16;;;;;961:274;-1:-1:-1;;961:274:1:o;2306:383::-;2455:2;2444:9;2437:21;2418:4;2487:6;2481:13;2530:6;2525:2;2514:9;2510:18;2503:34;2546:66;2605:6;2600:2;2589:9;2585:18;2580:2;2572:6;2568:15;2546:66;:::i;:::-;2673:2;2652:15;-1:-1:-1;;2648:29:1;2633:45;;;;2680:2;2629:54;;2306:383;-1:-1:-1;;2306:383:1:o;3861:410::-;4063:2;4045:21;;;4102:2;4082:18;;;4075:30;4141:34;4136:2;4121:18;;4114:62;-1:-1:-1;;;4207:2:1;4192:18;;4185:44;4261:3;4246:19;;3861:410::o;4276:356::-;4478:2;4460:21;;;4497:18;;;4490:30;4556:34;4551:2;4536:18;;4529:62;4623:2;4608:18;;4276:356::o;6069:407::-;6271:2;6253:21;;;6310:2;6290:18;;;6283:30;6349:34;6344:2;6329:18;;6322:62;-1:-1:-1;;;6415:2:1;6400:18;;6393:41;6466:3;6451:19;;6069:407::o;6892:355::-;7094:2;7076:21;;;7133:2;7113:18;;;7106:30;7172:33;7167:2;7152:18;;7145:61;7238:2;7223:18;;6892:355::o;7434:128::-;7474:3;7505:1;7501:6;7498:1;7495:13;7492:39;;;7511:18;;:::i;:::-;-1:-1:-1;7547:9:1;;7434:128::o;7567:125::-;7607:4;7635:1;7632;7629:8;7626:34;;;7640:18;;:::i;:::-;-1:-1:-1;7677:9:1;;7567:125::o;7697:258::-;7769:1;7779:113;7793:6;7790:1;7787:13;7779:113;;;7869:11;;;7863:18;7850:11;;;7843:39;7815:2;7808:10;7779:113;;;7910:6;7907:1;7904:13;7901:48;;;-1:-1:-1;;7945:1:1;7927:16;;7920:27;7697:258::o;7960:127::-;8021:10;8016:3;8012:20;8009:1;8002:31;8052:4;8049:1;8042:15;8076:4;8073:1;8066:15
Swarm Source
ipfs://dff8c739cf3ac4a6fc133524c2a67c88cdf350c171e0112bc670d8205150bba4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.782664 | 29,063.2 | $22,746.72 |
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.