15M+ users trust MoonPay. Checkout with your preferred payment method.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Get up to 0.5% cashback per purchase and receive daily interest.
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Opt-in, make your first trade on Exchange Plus & receive random crypto rewards from 10,000 SHIB, to 0.01 BTC.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
9 years old Licensed Crypto Casino, Instant Withdraw 24/7, 6000+ Slots available, Paypal Deposit, Instant Live Support 24/7, 30% Rakeback.
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Play 100s of games anonymously with all major cryptos. Join CryptoWins & start winning!
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
Overview
ETH Balance
Eth Value
$48,815.76 (@ $3,400.33/ETH)Token Holdings
Could not find any matches!
- ERC-20 Tokens (6)2.0517907 WBTCWrapped BTC (WBTC)$131,450.02@64,066.005,000 $ Evmosia.com$ Evmosia.c... ($ Evm...)50,000 $+ $50 000 FO... ($)1.2 TokenERC-20 TOKEN*[Suspicious]1.7 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (7)
More Info
Private Name Tags
ContractCreator
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||||
---|---|---|---|---|---|---|---|---|
19559963 | 2024-04-01 9:02:59 | 109 days ago | 1711962179 | 0.95468995 ETH$3,246.26 | ||||
19490276 | 2024-03-22 12:50:59 | 118 days ago | 1711111859 | 1.97223492 ETH$6,706.25 | ||||
18981680 | 2024-01-11 5:42:35 | 190 days ago | 1704951755 | 3.60770694 ETH$12,267.40 | ||||
18969465 | 2024-01-09 12:40:35 | 191 days ago | 1704804035 | 1.73319984 ETH$5,893.45 | ||||
18961139 | 2024-01-08 8:32:59 | 193 days ago | 1704702779 | 3.60770694 ETH$12,267.40 | ||||
18893770 | 2023-12-29 21:01:59 | 202 days ago | 1703883719 | 1.73319984 ETH$5,893.45 | ||||
18862344 | 2023-12-25 11:06:35 | 207 days ago | 1703502395 | 0.95468995 ETH$3,246.26 | ||||
18218738 | 2023-09-26 8:23:23 | 297 days ago | 1695716603 | 2.41745562 ETH$8,220.15 | ||||
18190972 | 2023-09-22 11:05:35 | 301 days ago | 1695380735 | 4.9280456 ETH$16,756.99 | ||||
18140117 | 2023-09-15 7:24:11 | 308 days ago | 1694762651 | 2.4652471 ETH$8,382.66 | ||||
18122405 | 2023-09-12 19:42:23 | 310 days ago | 1694547743 | 3.65498854 ETH$12,428.17 | ||||
18122185 | 2023-09-12 18:58:23 | 310 days ago | 1694545103 | 1.3014308 ETH$4,425.30 | ||||
18119157 | 2023-09-12 8:47:47 | 311 days ago | 1694508467 | 4.33400779 ETH$14,737.06 | ||||
18118633 | 2023-09-12 7:01:59 | 311 days ago | 1694502119 | 1.97223492 ETH$6,706.25 | ||||
18115707 | 2023-09-11 21:10:23 | 311 days ago | 1694466623 | 3.65498854 ETH$12,428.17 | ||||
18115707 | 2023-09-11 21:10:23 | 311 days ago | 1694466623 | 1.3014308 ETH$4,425.30 | ||||
18104290 | 2023-09-10 6:49:11 | 313 days ago | 1694328551 | 2.4652471 ETH$8,382.66 | ||||
18095637 | 2023-09-09 1:43:23 | 314 days ago | 1694223803 | 3.20947941 ETH$10,913.29 | ||||
18048089 | 2023-09-02 9:58:59 | 321 days ago | 1693648739 | 2.96642689 ETH$10,086.83 | ||||
18047138 | 2023-09-02 6:45:59 | 321 days ago | 1693637159 | 4.9280456 ETH$16,756.99 | ||||
18047138 | 2023-09-02 6:45:59 | 321 days ago | 1693637159 | 2.96642689 ETH$10,086.83 | ||||
18020378 | 2023-08-29 12:49:47 | 324 days ago | 1693313387 | 1.96635682 ETH$6,686.26 | ||||
18015853 | 2023-08-28 21:35:11 | 325 days ago | 1693258511 | 4.58083998 ETH$15,576.37 | ||||
17977404 | 2023-08-23 12:27:35 | 330 days ago | 1692793655 | 1.96635682 ETH$6,686.26 | ||||
17976676 | 2023-08-23 10:01:11 | 331 days ago | 1692784871 | 4.58083998 ETH$15,576.37 |
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Interfaces/ICollSurplusPool.sol"; import "./Dependencies/CheckContract.sol"; import "./Dependencies/SafetyTransfer.sol"; import "./Dependencies/Initializable.sol"; contract CollSurplusPool is Ownable, CheckContract, Initializable, ICollSurplusPool { using SafeMath for uint256; using SafeERC20 for IERC20; string public constant NAME = "CollSurplusPool"; address constant ETH_REF_ADDRESS = address(0); address public borrowerOperationsAddress; address public troveManagerAddress; address public troveManagerHelpersAddress; address public activePoolAddress; bool public isInitialized; // deposited ether tracker mapping(address => uint256) balances; // Collateral surplus claimable by trove owners mapping(address => mapping(address => uint256)) internal userBalances; // --- Contract setters --- function setAddresses( address _borrowerOperationsAddress, address _troveManagerAddress, address _troveManagerHelpersAddress, address _activePoolAddress ) external override initializer onlyOwner { require(!isInitialized, "Already initialized"); checkContract(_borrowerOperationsAddress); checkContract(_troveManagerAddress); checkContract(_troveManagerHelpersAddress); checkContract(_activePoolAddress); isInitialized = true; borrowerOperationsAddress = _borrowerOperationsAddress; troveManagerAddress = _troveManagerAddress; troveManagerHelpersAddress = _troveManagerHelpersAddress; activePoolAddress = _activePoolAddress; emit BorrowerOperationsAddressChanged(_borrowerOperationsAddress); emit TroveManagerAddressChanged(_troveManagerAddress); emit ActivePoolAddressChanged(_activePoolAddress); renounceOwnership(); } /* Returns the Asset state variable at ActivePool address. Not necessarily equal to the raw ether balance - ether can be forcibly sent to contracts. */ function getAssetBalance(address _asset) external view override returns (uint256) { return balances[_asset]; } function getCollateral(address _asset, address _account) external view override returns (uint256) { return userBalances[_account][_asset]; } // --- Pool functionality --- function accountSurplus( address _asset, address _account, uint256 _amount ) external override { _requireCallerIsTroveManager(); uint256 newAmount = userBalances[_account][_asset].add(_amount); userBalances[_account][_asset] = newAmount; emit CollBalanceUpdated(_account, newAmount); } function claimColl(address _asset, address _account) external override { _requireCallerIsBorrowerOperations(); uint256 claimableCollEther = userBalances[_account][_asset]; uint256 safetyTransferclaimableColl = SafetyTransfer.decimalsCorrection( _asset, userBalances[_account][_asset] ); require( safetyTransferclaimableColl > 0, "CollSurplusPool: No collateral available to claim" ); userBalances[_account][_asset] = 0; emit CollBalanceUpdated(_account, 0); balances[_asset] = balances[_asset].sub(claimableCollEther); emit AssetSent(_account, safetyTransferclaimableColl); if (_asset == ETH_REF_ADDRESS) { (bool success, ) = _account.call{ value: claimableCollEther }(""); require(success, "CollSurplusPool: sending ETH failed"); } else { IERC20(_asset).safeTransfer(_account, safetyTransferclaimableColl); } } function receivedERC20(address _asset, uint256 _amount) external override { _requireCallerIsActivePool(); balances[_asset] = balances[_asset].add(_amount); } // --- 'require' functions --- function _requireCallerIsBorrowerOperations() internal view { require( msg.sender == borrowerOperationsAddress, "CollSurplusPool: Caller is not Borrower Operations" ); } function _requireCallerIsTroveManager() internal view { require( msg.sender == troveManagerAddress || msg.sender == troveManagerHelpersAddress, "CollSurplusPool: Caller is not TroveManager"); } function _requireCallerIsActivePool() internal view { require(msg.sender == activePoolAddress, "CollSurplusPool: Caller is not Active Pool"); } // --- Fallback function --- receive() external payable { _requireCallerIsActivePool(); balances[ETH_REF_ADDRESS] = balances[ETH_REF_ADDRESS].add(msg.value); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT 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 no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; import "./IDeposit.sol"; interface ICollSurplusPool is IDeposit { // --- Events --- event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTroveManagerAddress); event ActivePoolAddressChanged(address _newActivePoolAddress); event CollBalanceUpdated(address indexed _account, uint256 _newBalance); event AssetSent(address _to, uint256 _amount); // --- Contract setters --- function setAddresses( address _borrowerOperationsAddress, address _troveManagerAddress, address _troveManagerHelpersAddress, address _activePoolAddress ) external; function getAssetBalance(address _asset) external view returns (uint256); function getCollateral(address _asset, address _account) external view returns (uint256); function accountSurplus( address _asset, address _account, uint256 _amount ) external; function claimColl(address _asset, address _account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; contract CheckContract { function checkContract(address _account) internal view { require(_account != address(0), "Account cannot be zero address"); uint256 size; assembly { size := extcodesize(_account) } require(size > 0, "Account code size cannot be zero"); } }
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./ERC20Decimals.sol"; library SafetyTransfer { using SafeMath for uint256; //_amount is in ether (1e18) and we want to convert it to the token decimal function decimalsCorrection(address _token, uint256 _amount) internal view returns (uint256) { if (_token == address(0)) return _amount; if (_amount == 0) return 0; uint8 decimals = ERC20Decimals(_token).decimals(); if (decimals < 18) { return _amount.div(10**(18 - decimals)); } else { return _amount.mul(10**(decimals - 18)); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/utils/Address.sol"; 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 = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 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) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _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 { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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; } }
pragma solidity ^0.8.14; interface IDeposit { function receivedERC20(address _asset, uint256 _amount) external; }
pragma solidity ^0.8.14; interface ERC20Decimals { function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newActivePoolAddress","type":"address"}],"name":"ActivePoolAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AssetSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newBorrowerOperationsAddress","type":"address"}],"name":"BorrowerOperationsAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_newBalance","type":"uint256"}],"name":"CollBalanceUpdated","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":false,"internalType":"address","name":"_newTroveManagerAddress","type":"address"}],"name":"TroveManagerAddressChanged","type":"event"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"accountSurplus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activePoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowerOperationsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"claimColl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getAssetBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"getCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"receivedERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_borrowerOperationsAddress","type":"address"},{"internalType":"address","name":"_troveManagerAddress","type":"address"},{"internalType":"address","name":"_troveManagerHelpersAddress","type":"address"},{"internalType":"address","name":"_activePoolAddress","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"troveManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"troveManagerHelpersAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6114dd8061007e6000396000f3fe6080604052600436106100ec5760003560e01c80638da5cb5b1161008a578063ea16003f11610059578063ea16003f14610358578063eb16f00414610378578063f2fde38b14610398578063fe9454b4146103b857600080fd5b80638da5cb5b146102b2578063a3f4df7e146102d0578063b08bc72214610318578063b7f8cf9b1461033857600080fd5b80635373433f116100c65780635373433f1461020f5780635a4d28bb14610245578063715018a61461027d57806387c333811461029257600080fd5b8063392e53cd146101625780634a945f8d1461019857806352226ef0146101ba57600080fd5b3661015d576100f96103d8565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc5461012e903461044c565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc819055005b600080fd5b34801561016e57600080fd5b5060045461018390600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b3480156101a457600080fd5b506101b86101b336600461110e565b610461565b005b3480156101c657600080fd5b506102016101d5366004611162565b6001600160a01b0380821660009081526006602090815260408083209386168352929052205492915050565b60405190815260200161018f565b34801561021b57600080fd5b5061020161022a366004611195565b6001600160a01b031660009081526005602052604090205490565b34801561025157600080fd5b50600254610265906001600160a01b031681565b6040516001600160a01b03909116815260200161018f565b34801561028957600080fd5b506101b8610744565b34801561029e57600080fd5b50600354610265906001600160a01b031681565b3480156102be57600080fd5b506000546001600160a01b0316610265565b3480156102dc57600080fd5b5061030b6040518060400160405280600f81526020016e10dbdb1b14dd5c9c1b1d5cd41bdbdb608a1b81525081565b60405161018f91906111dc565b34801561032457600080fd5b50600454610265906001600160a01b031681565b34801561034457600080fd5b50600154610265906001600160a01b031681565b34801561036457600080fd5b506101b8610373366004611162565b610778565b34801561038457600080fd5b506101b861039336600461120f565b6109d4565b3480156103a457600080fd5b506101b86103b3366004611195565b610a1f565b3480156103c457600080fd5b506101b86103d3366004611239565b610aba565b6004546001600160a01b0316331461044a5760405162461bcd60e51b815260206004820152602a60248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74204160448201526918dd1a5d9948141bdbdb60b21b60648201526084015b60405180910390fd5b565b6000610458828461128b565b90505b92915050565b600054600160a81b900460ff161580801561048957506000546001600160a01b90910460ff16105b806104aa5750303b1580156104aa5750600054600160a01b900460ff166001145b61050d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610441565b6000805460ff60a01b1916600160a01b179055801561053a576000805460ff60a81b1916600160a81b1790555b6000546001600160a01b031633146105645760405162461bcd60e51b8152600401610441906112a3565b600454600160a01b900460ff16156105b45760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610441565b6105bd85610b59565b6105c684610b59565b6105cf83610b59565b6105d882610b59565b60048054600180546001600160a01b03808a166001600160a01b0319928316179092556002805489841690831617905560038054888416921691909117905584166001600160a81b031990911617600160a01b1790556040517f3ca631ffcd2a9b5d9ae18543fc82f58eb4ca33af9e6ab01b7a8e95331e6ed9859061066d9087906001600160a01b0391909116815260200190565b60405180910390a16040516001600160a01b03851681527f143219c9e69b09e07e095fcc889b43d8f46ca892bba65f08dc3a0050869a56789060200160405180910390a16040516001600160a01b03831681527f78f058b189175430c48dc02699e3a0031ea4ff781536dc2fab847de4babdd8829060200160405180910390a16106f5610744565b801561073d576000805460ff60a81b19169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6000546001600160a01b0316331461076e5760405162461bcd60e51b8152600401610441906112a3565b61044a6000610c02565b610780610c52565b6001600160a01b038181166000908152600660209081526040808320938616835292905290812054906107b38483610cc7565b90506000811161081f5760405162461bcd60e51b815260206004820152603160248201527f436f6c6c537572706c7573506f6f6c3a204e6f20636f6c6c61746572616c20616044820152707661696c61626c6520746f20636c61696d60781b6064820152608401610441565b6001600160a01b0383811660008181526006602090815260408083209489168352938152838220829055925190815290917ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f20910160405180910390a26001600160a01b03841660009081526005602052604090205461089e9083610da8565b6001600160a01b0385811660009081526005602090815260409182902093909355805191861682529181018390527fc4dfa259771b0ed50b100eaf04734dad1b094a866d9d285c59180cde3f3f45e8910160405180910390a16001600160a01b0384166109ba576000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610952576040519150601f19603f3d011682016040523d82523d6000602084013e610957565b606091505b50509050806109b45760405162461bcd60e51b815260206004820152602360248201527f436f6c6c537572706c7573506f6f6c3a2073656e64696e6720455448206661696044820152621b195960ea1b6064820152608401610441565b506109ce565b6109ce6001600160a01b0385168483610db4565b50505050565b6109dc6103d8565b6001600160a01b0382166000908152600560205260409020546109ff908261044c565b6001600160a01b0390921660009081526005602052604090209190915550565b6000546001600160a01b03163314610a495760405162461bcd60e51b8152600401610441906112a3565b6001600160a01b038116610aae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610441565b610ab781610c02565b50565b610ac2610e0b565b6001600160a01b038083166000908152600660209081526040808320938716835292905290812054610af4908361044c565b6001600160a01b038481166000818152600660209081526040808320948a168352938152908390208490559151838152929350917ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f20910160405180910390a250505050565b6001600160a01b038116610baf5760405162461bcd60e51b815260206004820152601e60248201527f4163636f756e742063616e6e6f74206265207a65726f206164647265737300006044820152606401610441565b803b80610bfe5760405162461bcd60e51b815260206004820181905260248201527f4163636f756e7420636f64652073697a652063616e6e6f74206265207a65726f6044820152606401610441565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b0316331461044a5760405162461bcd60e51b815260206004820152603260248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f7420426044820152716f72726f776572204f7065726174696f6e7360701b6064820152608401610441565b60006001600160a01b038316610cde57508061045b565b81600003610cee5750600061045b565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5291906112d8565b905060128160ff161015610d8857610d80610d6e8260126112fb565b610d7990600a611402565b8490610e8e565b91505061045b565b610d80610d966012836112fb565b610da190600a611402565b8490610e9a565b60006104588284611411565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e06908490610ea6565b505050565b6002546001600160a01b0316331480610e2e57506003546001600160a01b031633145b61044a5760405162461bcd60e51b815260206004820152602b60248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74205460448201526a3937bb32a6b0b730b3b2b960a91b6064820152608401610441565b60006104588284611428565b6000610458828461144a565b6000610efb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f789092919063ffffffff16565b805190915015610e065780806020019051810190610f199190611469565b610e065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610441565b6060610f878484600085610f91565b90505b9392505050565b606082471015610ff25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610441565b843b6110405760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610441565b600080866001600160a01b0316858760405161105c919061148b565b60006040518083038185875af1925050503d8060008114611099576040519150601f19603f3d011682016040523d82523d6000602084013e61109e565b606091505b50915091506110ae8282866110b9565b979650505050505050565b606083156110c8575081610f8a565b8251156110d85782518084602001fd5b8160405162461bcd60e51b815260040161044191906111dc565b80356001600160a01b038116811461110957600080fd5b919050565b6000806000806080858703121561112457600080fd5b61112d856110f2565b935061113b602086016110f2565b9250611149604086016110f2565b9150611157606086016110f2565b905092959194509250565b6000806040838503121561117557600080fd5b61117e836110f2565b915061118c602084016110f2565b90509250929050565b6000602082840312156111a757600080fd5b610458826110f2565b60005b838110156111cb5781810151838201526020016111b3565b838111156109ce5750506000910152565b60208152600082518060208401526111fb8160408501602087016111b0565b601f01601f19169190910160400192915050565b6000806040838503121561122257600080fd5b61122b836110f2565b946020939093013593505050565b60008060006060848603121561124e57600080fd5b611257846110f2565b9250611265602085016110f2565b9150604084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b6000821982111561129e5761129e611275565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156112ea57600080fd5b815160ff81168114610f8a57600080fd5b600060ff821660ff84168082101561131557611315611275565b90039392505050565b600181815b8085111561135957816000190482111561133f5761133f611275565b8085161561134c57918102915b93841c9390800290611323565b509250929050565b6000826113705750600161045b565b8161137d5750600061045b565b8160018114611393576002811461139d576113b9565b600191505061045b565b60ff8411156113ae576113ae611275565b50506001821b61045b565b5060208310610133831016604e8410600b84101617156113dc575081810a61045b565b6113e6838361131e565b80600019048211156113fa576113fa611275565b029392505050565b600061045860ff841683611361565b60008282101561142357611423611275565b500390565b60008261144557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561146457611464611275565b500290565b60006020828403121561147b57600080fd5b81518015158114610f8a57600080fd5b6000825161149d8184602087016111b0565b919091019291505056fea2646970667358221220d0405a2f198693efc1d05300707215b1da789e3971cf7643006876ed313cc66664736f6c634300080e0033
Deployed Bytecode
0x6080604052600436106100ec5760003560e01c80638da5cb5b1161008a578063ea16003f11610059578063ea16003f14610358578063eb16f00414610378578063f2fde38b14610398578063fe9454b4146103b857600080fd5b80638da5cb5b146102b2578063a3f4df7e146102d0578063b08bc72214610318578063b7f8cf9b1461033857600080fd5b80635373433f116100c65780635373433f1461020f5780635a4d28bb14610245578063715018a61461027d57806387c333811461029257600080fd5b8063392e53cd146101625780634a945f8d1461019857806352226ef0146101ba57600080fd5b3661015d576100f96103d8565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc5461012e903461044c565b6000805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc819055005b600080fd5b34801561016e57600080fd5b5060045461018390600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b3480156101a457600080fd5b506101b86101b336600461110e565b610461565b005b3480156101c657600080fd5b506102016101d5366004611162565b6001600160a01b0380821660009081526006602090815260408083209386168352929052205492915050565b60405190815260200161018f565b34801561021b57600080fd5b5061020161022a366004611195565b6001600160a01b031660009081526005602052604090205490565b34801561025157600080fd5b50600254610265906001600160a01b031681565b6040516001600160a01b03909116815260200161018f565b34801561028957600080fd5b506101b8610744565b34801561029e57600080fd5b50600354610265906001600160a01b031681565b3480156102be57600080fd5b506000546001600160a01b0316610265565b3480156102dc57600080fd5b5061030b6040518060400160405280600f81526020016e10dbdb1b14dd5c9c1b1d5cd41bdbdb608a1b81525081565b60405161018f91906111dc565b34801561032457600080fd5b50600454610265906001600160a01b031681565b34801561034457600080fd5b50600154610265906001600160a01b031681565b34801561036457600080fd5b506101b8610373366004611162565b610778565b34801561038457600080fd5b506101b861039336600461120f565b6109d4565b3480156103a457600080fd5b506101b86103b3366004611195565b610a1f565b3480156103c457600080fd5b506101b86103d3366004611239565b610aba565b6004546001600160a01b0316331461044a5760405162461bcd60e51b815260206004820152602a60248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74204160448201526918dd1a5d9948141bdbdb60b21b60648201526084015b60405180910390fd5b565b6000610458828461128b565b90505b92915050565b600054600160a81b900460ff161580801561048957506000546001600160a01b90910460ff16105b806104aa5750303b1580156104aa5750600054600160a01b900460ff166001145b61050d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610441565b6000805460ff60a01b1916600160a01b179055801561053a576000805460ff60a81b1916600160a81b1790555b6000546001600160a01b031633146105645760405162461bcd60e51b8152600401610441906112a3565b600454600160a01b900460ff16156105b45760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610441565b6105bd85610b59565b6105c684610b59565b6105cf83610b59565b6105d882610b59565b60048054600180546001600160a01b03808a166001600160a01b0319928316179092556002805489841690831617905560038054888416921691909117905584166001600160a81b031990911617600160a01b1790556040517f3ca631ffcd2a9b5d9ae18543fc82f58eb4ca33af9e6ab01b7a8e95331e6ed9859061066d9087906001600160a01b0391909116815260200190565b60405180910390a16040516001600160a01b03851681527f143219c9e69b09e07e095fcc889b43d8f46ca892bba65f08dc3a0050869a56789060200160405180910390a16040516001600160a01b03831681527f78f058b189175430c48dc02699e3a0031ea4ff781536dc2fab847de4babdd8829060200160405180910390a16106f5610744565b801561073d576000805460ff60a81b19169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6000546001600160a01b0316331461076e5760405162461bcd60e51b8152600401610441906112a3565b61044a6000610c02565b610780610c52565b6001600160a01b038181166000908152600660209081526040808320938616835292905290812054906107b38483610cc7565b90506000811161081f5760405162461bcd60e51b815260206004820152603160248201527f436f6c6c537572706c7573506f6f6c3a204e6f20636f6c6c61746572616c20616044820152707661696c61626c6520746f20636c61696d60781b6064820152608401610441565b6001600160a01b0383811660008181526006602090815260408083209489168352938152838220829055925190815290917ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f20910160405180910390a26001600160a01b03841660009081526005602052604090205461089e9083610da8565b6001600160a01b0385811660009081526005602090815260409182902093909355805191861682529181018390527fc4dfa259771b0ed50b100eaf04734dad1b094a866d9d285c59180cde3f3f45e8910160405180910390a16001600160a01b0384166109ba576000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610952576040519150601f19603f3d011682016040523d82523d6000602084013e610957565b606091505b50509050806109b45760405162461bcd60e51b815260206004820152602360248201527f436f6c6c537572706c7573506f6f6c3a2073656e64696e6720455448206661696044820152621b195960ea1b6064820152608401610441565b506109ce565b6109ce6001600160a01b0385168483610db4565b50505050565b6109dc6103d8565b6001600160a01b0382166000908152600560205260409020546109ff908261044c565b6001600160a01b0390921660009081526005602052604090209190915550565b6000546001600160a01b03163314610a495760405162461bcd60e51b8152600401610441906112a3565b6001600160a01b038116610aae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610441565b610ab781610c02565b50565b610ac2610e0b565b6001600160a01b038083166000908152600660209081526040808320938716835292905290812054610af4908361044c565b6001600160a01b038481166000818152600660209081526040808320948a168352938152908390208490559151838152929350917ff0393a34d05e6567686ad4e097f9d9d2781565957394f1f0d984e5d8e6378f20910160405180910390a250505050565b6001600160a01b038116610baf5760405162461bcd60e51b815260206004820152601e60248201527f4163636f756e742063616e6e6f74206265207a65726f206164647265737300006044820152606401610441565b803b80610bfe5760405162461bcd60e51b815260206004820181905260248201527f4163636f756e7420636f64652073697a652063616e6e6f74206265207a65726f6044820152606401610441565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b0316331461044a5760405162461bcd60e51b815260206004820152603260248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f7420426044820152716f72726f776572204f7065726174696f6e7360701b6064820152608401610441565b60006001600160a01b038316610cde57508061045b565b81600003610cee5750600061045b565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5291906112d8565b905060128160ff161015610d8857610d80610d6e8260126112fb565b610d7990600a611402565b8490610e8e565b91505061045b565b610d80610d966012836112fb565b610da190600a611402565b8490610e9a565b60006104588284611411565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e06908490610ea6565b505050565b6002546001600160a01b0316331480610e2e57506003546001600160a01b031633145b61044a5760405162461bcd60e51b815260206004820152602b60248201527f436f6c6c537572706c7573506f6f6c3a2043616c6c6572206973206e6f74205460448201526a3937bb32a6b0b730b3b2b960a91b6064820152608401610441565b60006104588284611428565b6000610458828461144a565b6000610efb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f789092919063ffffffff16565b805190915015610e065780806020019051810190610f199190611469565b610e065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610441565b6060610f878484600085610f91565b90505b9392505050565b606082471015610ff25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610441565b843b6110405760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610441565b600080866001600160a01b0316858760405161105c919061148b565b60006040518083038185875af1925050503d8060008114611099576040519150601f19603f3d011682016040523d82523d6000602084013e61109e565b606091505b50915091506110ae8282866110b9565b979650505050505050565b606083156110c8575081610f8a565b8251156110d85782518084602001fd5b8160405162461bcd60e51b815260040161044191906111dc565b80356001600160a01b038116811461110957600080fd5b919050565b6000806000806080858703121561112457600080fd5b61112d856110f2565b935061113b602086016110f2565b9250611149604086016110f2565b9150611157606086016110f2565b905092959194509250565b6000806040838503121561117557600080fd5b61117e836110f2565b915061118c602084016110f2565b90509250929050565b6000602082840312156111a757600080fd5b610458826110f2565b60005b838110156111cb5781810151838201526020016111b3565b838111156109ce5750506000910152565b60208152600082518060208401526111fb8160408501602087016111b0565b601f01601f19169190910160400192915050565b6000806040838503121561122257600080fd5b61122b836110f2565b946020939093013593505050565b60008060006060848603121561124e57600080fd5b611257846110f2565b9250611265602085016110f2565b9150604084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b6000821982111561129e5761129e611275565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156112ea57600080fd5b815160ff81168114610f8a57600080fd5b600060ff821660ff84168082101561131557611315611275565b90039392505050565b600181815b8085111561135957816000190482111561133f5761133f611275565b8085161561134c57918102915b93841c9390800290611323565b509250929050565b6000826113705750600161045b565b8161137d5750600061045b565b8160018114611393576002811461139d576113b9565b600191505061045b565b60ff8411156113ae576113ae611275565b50506001821b61045b565b5060208310610133831016604e8410600b84101617156113dc575081810a61045b565b6113e6838361131e565b80600019048211156113fa576113fa611275565b029392505050565b600061045860ff841683611361565b60008282101561142357611423611275565b500390565b60008261144557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561146457611464611275565b500290565b60006020828403121561147b57600080fd5b81518015158114610f8a57600080fd5b6000825161149d8184602087016111b0565b919091019291505056fea2646970667358221220d0405a2f198693efc1d05300707215b1da789e3971cf7643006876ed313cc66664736f6c634300080e0033
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Note:
Please DO NOT store any passwords or private keys here.
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), InlineAssemblyMemorySideEffects (medium-severity) Solidity Compiler Bugs.
Connect a Wallet
Connect a Wallet
Connect a Wallet
Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.