Overview
ETH Balance
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 48 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 127130802 | 17 days ago | IN | 0 ETH | 0.000000069014 | ||||
Approve | 127115152 | 17 days ago | IN | 0 ETH | 0.000000046277 | ||||
Approve | 125458835 | 56 days ago | IN | 0 ETH | 0.000000211947 | ||||
Approve | 121685090 | 143 days ago | IN | 0 ETH | 0.000002849218 | ||||
Approve | 118539249 | 216 days ago | IN | 0 ETH | 0.000003145089 | ||||
Approve | 115553533 | 285 days ago | IN | 0 ETH | 0.0000854914 | ||||
Deposit | 115426019 | 288 days ago | IN | 0 ETH | 0.000019710341 | ||||
Withdraw | 115425998 | 288 days ago | IN | 0 ETH | 0.000019576626 | ||||
Deposit | 115397198 | 289 days ago | IN | 0 ETH | 0.000016848639 | ||||
Withdraw | 114970101 | 298 days ago | IN | 0 ETH | 0.00005180094 | ||||
Withdraw | 114776706 | 303 days ago | IN | 0 ETH | 0.000023701033 | ||||
Deposit | 114772659 | 303 days ago | IN | 0 ETH | 0.000022421514 | ||||
Withdraw | 114771606 | 303 days ago | IN | 0 ETH | 0.000025467019 | ||||
Deposit | 114764637 | 303 days ago | IN | 0 ETH | 0.000020231282 | ||||
Withdraw | 114763741 | 303 days ago | IN | 0 ETH | 0.000022276942 | ||||
Withdraw | 114706362 | 305 days ago | IN | 0 ETH | 0.000034233982 | ||||
Withdraw | 114706307 | 305 days ago | IN | 0 ETH | 0.00002959515 | ||||
Approve | 114604571 | 307 days ago | IN | 0 ETH | 0.000026426051 | ||||
Deposit | 114604557 | 307 days ago | IN | 0 ETH | 0.000024984864 | ||||
Withdraw | 114604498 | 307 days ago | IN | 0 ETH | 0.000028988754 | ||||
Deposit | 114598265 | 307 days ago | IN | 0 ETH | 0.000020691735 | ||||
Withdraw | 114598242 | 307 days ago | IN | 0 ETH | 0.00002169882 | ||||
Withdraw | 114531763 | 309 days ago | IN | 0 ETH | 0.000041340333 | ||||
Approve | 114530142 | 309 days ago | IN | 0 ETH | 0.000060941442 | ||||
Deposit | 114530124 | 309 days ago | IN | 0 ETH | 0.000044181911 |
View more zero value Internal Transactions in Advanced View mode
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x77D06c65...09d9a61F8 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import './interfaces/IMatrixStrategy.sol'; /** * @dev Implementation of a vault to deposit funds for yield optimizing. * This is the contract that receives funds and that users interface with. * The yield optimizing strategy itself is implemented in a separate 'Strategy.sol' contract. */ contract MatrixVault is ERC20, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; struct StratCandidate { address implementation; uint256 proposedTime; } event Deposit(address indexed _user, uint256 _wantAmount); event Withdraw(address indexed _user, uint256 _wantAmount); /** * @dev The stretegy's initialization status. Gives deployer 20 minutes after contract * construction (constructionTime) to set the strategy implementation. */ bool public initialized = false; uint256 public constructionTime; // The last proposed strategy to switch to. StratCandidate public stratCandidate; // The strategy currently in use by the vault. address public strategy; // The minimum time it has to pass before a strat candidate can be approved. uint256 public immutable approvalDelay; event NewStratCandidate(address implementation); event UpgradeStrat(address implementation); /** * @dev Sets the value of {token} to the token that the vault will * hold as underlying value. It initializes the vault's own 'moo' token. * This token is minted when someone does a deposit. It is burned in order * to withdraw the corresponding portion of the underlying assets. * @param _name the name of the vault token. * @param _symbol the symbol of the vault token. * @param _approvalDelay the delay before a new strat can be approved. */ constructor( string memory _name, string memory _symbol, uint256 _approvalDelay ) ERC20(_name, _symbol) { approvalDelay = _approvalDelay; constructionTime = block.timestamp; } /** * @dev Connects the vault to its initial strategy. One use only. * @notice deployer has only 20 minutes after construction to connect the initial strategy. * @param _strategy the vault's initial strategy */ function initialize(address _strategy) public onlyOwner returns (bool) { require(!initialized, 'Contract is already initialized.'); require(block.timestamp <= (constructionTime + 1200), 'initialization period over, use timelock'); strategy = _strategy; initialized = true; return true; } function want() public view returns (IERC20) { return IERC20(IMatrixStrategy(strategy).want()); } /** * @dev It calculates the total underlying value of {token} held by the system. * It takes into account the vault contract balance, the strategy contract balance * and the balance deployed in other contracts as part of the strategy. */ function balance() public view returns (uint256) { return want().balanceOf(address(this)) + IMatrixStrategy(strategy).balanceOf(); } /** * @dev Custom logic in here for how much the vault allows to be borrowed. * We return 100% of tokens for now. Under certain conditions we might * want to keep some of the system funds at hand in the vault, instead * of putting them to work. */ function available() public view returns (uint256) { return want().balanceOf(address(this)); } /** * @dev Function for various UIs to display the current value of one of our yield tokens. * Returns an uint256 with 18 decimals of how much underlying asset one vault share represents. */ function getPricePerFullShare() public view returns (uint256) { return totalSupply() == 0 ? 1e18 : (balance() * 1e18) / totalSupply(); } /** * @dev A helper function to call deposit() with all the sender's funds. */ function depositAll() external { deposit(want().balanceOf(msg.sender)); } /** * @dev The entrypoint of funds into the system. People deposit with this function * into the vault. The vault is then in charge of sending funds into the strategy. */ function deposit(uint256 _amount) public virtual nonReentrant { _deposit(_amount); } function _deposit(uint256 _amount) internal virtual { require(_amount > 0, 'please provide amount'); emit Deposit(msg.sender, _amount); IMatrixStrategy(strategy).beforeDeposit(); uint256 _pool = balance(); want().safeTransferFrom(msg.sender, address(this), _amount); earn(); uint256 _after = balance(); _amount = _after - _pool; // Additional check for deflationary tokens uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount * totalSupply()) / _pool; } _mint(msg.sender, shares); } /** * @dev Function to send funds into the strategy and put them to work. It's primarily called * by the vault's deposit() function. */ function earn() public { uint256 _bal = available(); want().safeTransfer(strategy, _bal); IMatrixStrategy(strategy).deposit(); } /** * @dev A helper function to call withdraw() with all the sender's funds. */ function withdrawAll() external { withdraw(balanceOf(msg.sender)); } /** * @dev Function to exit the system. The vault will withdraw the required tokens * from the strategy and pay up the token holder. A proportional number of IOU * tokens are burned in the process. */ function withdraw(uint256 _shares) public virtual nonReentrant { _withdraw(_shares); } function _withdraw(uint256 _shares) internal virtual { require(_shares > 0, 'please provide amount'); uint256 r = (balance() * _shares) / totalSupply(); emit Withdraw(msg.sender, r); _burn(msg.sender, _shares); uint256 b = want().balanceOf(address(this)); if (b < r) { uint256 _withdraw = r - b; IMatrixStrategy(strategy).withdraw(_withdraw); uint256 _after = want().balanceOf(address(this)); uint256 _diff = _after - b; if (_diff < _withdraw) { r = b + _diff; } } want().safeTransfer(msg.sender, r); } /** * @dev Sets the candidate for the new strat to use with this vault. * @param _implementation The address of the candidate strategy. */ function proposeStrat(address _implementation) public onlyOwner { require(address(this) == IMatrixStrategy(_implementation).vault(), 'Proposal not valid for this Vault'); stratCandidate = StratCandidate({ implementation: _implementation, proposedTime: block.timestamp }); emit NewStratCandidate(_implementation); } /** * @dev It switches the active strat for the strat candidate. After upgrading, the * candidate implementation is set to the 0x00 address, and proposedTime to a time * happening in +100 years for safety. */ function upgradeStrat() public onlyOwner { require(stratCandidate.implementation != address(0), 'There is no candidate'); require(stratCandidate.proposedTime + approvalDelay < block.timestamp, 'Delay has not passed'); emit UpgradeStrat(stratCandidate.implementation); IMatrixStrategy(strategy).retireStrat(); strategy = stratCandidate.implementation; stratCandidate.implementation = address(0); stratCandidate.proposedTime = 5000000000; earn(); } /** * @dev Rescues random funds stuck that the strat can't handle. * @param _token address of the token to rescue. */ function inCaseTokensGetStuck(address _token) external onlyOwner { require(_token != address(want()), '!token'); uint256 amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(msg.sender, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // 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 ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) 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 `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); /** * @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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) 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 // 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 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 * ==== * * [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 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IMatrixStrategy { function vault() external view returns (address); function want() external view returns (IERC20); function beforeDeposit() external; function deposit() external; function withdraw(uint256) external; function balanceOf() external view returns (uint256); function harvest() external; function retireStrat() external; function panic() external; function pause() external; function unpause() external; function paused() external view returns (bool); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "details": { "constantOptimizer": true, "cse": true, "deduplicate": true, "inliner": true, "jumpdestRemover": true, "orderLiterals": true, "peephole": true, "yul": true, "yulDetails": { "optimizerSteps": "u", "stackAllocation": true } }, "runs": 200 }, "remappings": [], "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_approvalDelay","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_wantAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"NewStratCandidate","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"UpgradeStrat","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_wantAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"constructionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"initialize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"proposeStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stratCandidate","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"uint256","name":"proposedTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x60806040526004361015610018575b610016600080fd5b005b60003560e01c806306fdde0314610298578063095ea7b31461028f578063158ef93e1461028657806318160ddd1461027d5780631f1fcd511461027457806323b872dd1461026b5780632e1a7d4d14610262578063313ce56714610259578063395093511461025057806348a0d754146102475780635b12ff9b1461023e57806370a0823114610235578063715018a61461022c57806376dfabb81461022357806377c7b8fc1461021a578063853828b6146102115780638da5cb5b1461020857806395d89b41146101ff578063a457c2d7146101f6578063a8c62e76146101ed578063a9059cbb146101e4578063b69ef8a8146101db578063b6b55f25146101d2578063c4d66de8146101c9578063d389800f146101c0578063dd62ed3e146101b7578063de5f6268146101ae578063def68a9c146101a5578063e2d1e75c1461019c578063e668524414610193578063f06c56101461018a5763f2fde38b0361000e57610185610b01565b61000e565b50610185610ad7565b50610185610a8e565b50610185610a46565b50610185610a1f565b506101856109f8565b506101856109cd565b50610185610975565b5061018561094b565b50610185610924565b506101856108fa565b506101856108cf565b506101856108a5565b50610185610856565b5061018561082c565b506101856107e7565b506101856107c0565b50610185610796565b50610185610759565b506101856106d9565b506101856106af565b50610185610688565b50610185610641565b50610185610616565b506101856105d8565b506101856105ac565b50610185610564565b506101856104f0565b50610185610476565b5061018561044c565b506101856103e9565b5061018561033c565b600080fd5b60009103126102b157565b6102b9600080fd5b565b918091926000905b8282106102db5750116102d4575050565b6000910152565b915080602091830151818601520182916102c3565b601f01601f191690565b61031b6102f06020936103249361030f815190565b80835293849260200190565b958691016102bb565b0190565b6020808252610339929101906102fa565b90565b5034610369575b61034e3660046102a6565b610365610359610e4d565b60405191829182610328565b0390f35b610371600080fd5b610343565b6001600160a01b031690565b6001600160a01b0381165b036102a157565b905035906102b982610382565b8061038d565b905035906102b9826103a1565b9190610339906040848203126103d8575b6103cf8185610394565b936020016103a7565b6103e0600080fd5b6103c5565b9052565b5034610419575b6103656104076104013660046103b4565b90610eeb565b60405191829182901515815260200190565b610421600080fd5b6103f0565b610339916008021c5b60ff1690565b906103399154610426565b61033960006007610435565b5034610469575b61045e3660046102a6565b610365610407610440565b610471600080fd5b610453565b50346104a4575b6104883660046102a6565b610365610493610e78565b6040515b9182918290815260200190565b6104ac600080fd5b61047d565b61033990610376906001600160a01b031682565b610339906104b1565b610339906104c5565b6103e5906104ce565b6020810192916102b991906104d7565b5034610519575b6105023660046102a6565b61036561050d611546565b604051918291826104e0565b610521600080fd5b6104f7565b9091606082840312610557575b6103396105408484610394565b9361054e8160208601610394565b936040016103a7565b61055f600080fd5b610533565b5034610582575b61036561040761057c366004610526565b91610ef6565b61058a600080fd5b61056b565b9061033991602081830312156103a7576105a7600080fd5b6103a7565b50346105cb575b6105c66105c136600461058f565b611fc6565b604051005b6105d3600080fd5b6105b3565b5034610609575b6105ea3660046102a6565b6103656105f5610e6e565b6040519182918260ff909116815260200190565b610611600080fd5b6105df565b5034610634575b61036561040761062e3660046103b4565b90610f3d565b61063c600080fd5b61061d565b503461065e575b6106533660046102a6565b61036561049361170f565b610666600080fd5b610648565b90610339916020818303121561039457610683600080fd5b610394565b50346106a2575b6105c661069d36600461066b565b6124f1565b6106aa600080fd5b61068f565b50346106cc575b6103656104936106c736600461066b565b610e9a565b6106d4600080fd5b6106b6565b50346106f3575b6106eb3660046102a6565b6105c6610be0565b6106fb600080fd5b6106e0565b61033990610376565b6103399054610700565b6103399081565b6103399054610713565b600990610339600161073584610709565b930161071a565b6001600160a01b0390911681526040810192916102b99160200152565b5034610789575b61076b3660046102a6565b610773610724565b9061036561078060405190565b9283928361073c565b610791600080fd5b610760565b50346107b3575b6107a83660046102a6565b6103656104936117a7565b6107bb600080fd5b61079d565b50346107da575b6107d23660046102a6565b6105c6611fa0565b6107e2600080fd5b6107c7565b503461081f575b6107f93660046102a6565b610365610804610b28565b6040515b918291826001600160a01b03909116815260200190565b610827600080fd5b6107ee565b5034610849575b61083e3660046102a6565b610365610359610e57565b610851600080fd5b610833565b5034610874575b61036561040761086e3660046103b4565b90610fc3565b61087c600080fd5b61085d565b610339916008021c610376565b906103399154610881565b6103396000600b61088e565b50346108c2575b6108b73660046102a6565b610365610804610899565b6108ca600080fd5b6108ac565b50346108ed575b6103656104076108e73660046103b4565b90610eb6565b6108f5600080fd5b6108d6565b5034610917575b61090c3660046102a6565b6103656104936115f3565b61091f600080fd5b610901565b503461093e575b6105c661093936600461058f565b611916565b610946600080fd5b61092b565b5034610968575b61036561040761096336600461066b565b6114fb565b610970600080fd5b610952565b503461098f575b6109873660046102a6565b6105c6611ee9565b610997600080fd5b61097c565b9190610339906040848203126109c0575b6109b78185610394565b93602001610394565b6109c8600080fd5b6109ad565b50346109eb575b6103656104936109e536600461099c565b90610ecb565b6109f3600080fd5b6109d4565b5034610a12575b610a0a3660046102a6565b6105c6611805565b610a1a600080fd5b6109ff565b5034610a39575b6105c6610a3436600461066b565b6127d9565b610a41600080fd5b610a26565b5034610a81575b610a583660046102a6565b6103657f0000000000000000000000000000000000000000000000000000000000015180610493565b610a89600080fd5b610a4d565b5034610aa8575b610aa03660046102a6565b6105c66126df565b610ab0600080fd5b610a95565b610339916008021c81565b906103399154610ab5565b61033960006008610ac0565b5034610af4575b610ae93660046102a6565b610365610493610acb565b610afc600080fd5b610ade565b5034610b1b575b6105c6610b1636600461066b565b610c7c565b610b23600080fd5b610b08565b6103396005610709565b15610b3957565b60405162461bcd60e51b815280610b82600482016020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b0390fd5b610bb0610b91610b28565b610baa610b9d33610376565b916001600160a01b031690565b14610b32565b6102b9610bce565b6103766103396103399290565b61033990610bb8565b6102b9610bdb6000610bc5565b610cb5565b6102b9610b86565b6102b990610bf7610b91610b28565b610c57565b15610c0357565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6102b990610bdb610c6b6103766000610bc5565b6001600160a01b0383161415610bfc565b6102b990610be8565b906001600160a01b03905b9181191691161790565b90610caa610339610cb1926104ce565b8254610c85565b9055565b610cbf6005610709565b90610ccb816005610c9a565b610cfe610cf87f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0936104ce565b916104ce565b91610d0860405190565b80805b0390a3565b50634e487b7160e01b600052602260045260246000fd5b9060016002830492168015610d4a575b6020831014610d4257565b6102b9610d10565b91607f1691610d37565b80546000939291610d71610d6783610d27565b8085529360200190565b9160018116908115610dc35750600114610d8a57505050565b610d9d9192939450600052602060002090565b916000925b818410610daf5750500190565b805484840152602090930192600101610da2565b60ff191683525050602001925050565b9061033991610d54565b50634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff821117610e1657604052565b610e1e610ddd565b604052565b906102b9610e3d92610e3460405190565b93848092610dd3565b0383610df4565b61033990610e23565b6103396003610e44565b6103396004610e44565b61042f6103396103399290565b6103396012610e61565b610339600261071a565b90610e8c906104ce565b600052602052604060002090565b610eb161033991610ea9600090565b506000610e82565b61071a565b610ec6919033611127565b611127565b600190565b61033991610ee6610eb192610ede600090565b506001610e82565b610e82565b610ec691903361129f565b610ec6929190610ec183338361136d565b50634e487b7160e01b600052601160045260246000fd5b90610f28565b9190565b9081198111610f35570190565b610324610f07565b610339903390610f5f600194610f5a610eb184610ee6878a610e82565b610f1e565b9161129f565b15610f6c57565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b0390565b610339903390610f5f600194610fe0610eb184610ee6878a610e82565b610fbf82821015610f65565b15610ff357565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561104d57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b156110a557565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b9060001990610c90565b6103396103396103399290565b90611120610339610cb192611103565b82546110f9565b6111b061119d83600061116e61115d61113f83610bc5565b6103766001600160a01b0382166001600160a01b038a161415610fec565b6001600160a01b0384161415611046565b610ee661118e88611182610eb18986610e82565b610fbf8282101561109e565b6111988784610e82565b611110565b6111aa85610f5a8361071a565b90611110565b610d0b6111e66111e07fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef936104ce565b936104ce565b9361049760405190565b156111f757565b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b1561124f57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b6112de6112cd6112af6000610bc5565b6103766001600160a01b0382166001600160a01b03861614156111f0565b6001600160a01b0384161415611248565b6112f18361119884610ee6856001610e82565b610d0b6111e66111e07f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925936104ce565b1561132857565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b906113788183610ecb565b6000198103611388575b50505050565b61139c93610f5f91610fbf82821015611321565b38808080611382565b90610339916113b5610b91610b28565b61149a565b6103399061042f565b61033990546113ba565b156113d457565b60405162461bcd60e51b815280610b82600482016020808252818101527f436f6e747261637420697320616c726561647920696e697469616c697a65642e604082015260600190565b1561142457565b60405162461bcd60e51b815260206004820152602860248201527f696e697469616c697a6174696f6e20706572696f64206f7665722c207573652060448201526774696d656c6f636b60c01b6064820152608490fd5b9060ff90610c90565b90611493610339610cb192151590565b825461147a565b506114ee906114b86114b36114af60076113c3565b1590565b6113cd565b6114e7426114e0610f246103396114cf600861071a565b6114da6104b0611103565b90610f1e565b111561141d565b600b610c9a565b6001610339816007611483565b6103399060006113a5565b61038d81610700565b905051906102b982611506565b90610339916020818303121561150f57611534600080fd5b61150f565b506040513d6000823e3d90fd5b611578602061156061155b61155b600b610709565b6104ce565b631f1fcd519061156f60405190565b93849260e01b90565b825260049082905afa9081156115bc575b600091611594575090565b610339915060203d81116115b5575b6115ad8183610df4565b81019061151c565b503d6115a3565b6115c4611539565b611589565b905051906102b9826103a1565b9061033991602081830312156115c9576115ee600080fd5b6115c9565b610339611688611649602061160961155b611546565b6370a082319061163261161b306104ce565b9261162560405190565b9586948593849360e01b90565b83526001600160a01b031660048301526024820190565b03915afa908115611702575b6000916116e4575b50602061167061155b61155b600b610709565b63722713f79061167f60405190565b94859260e01b90565b825260049082905afa9182156116d7575b6000926116a7575b50610f1e565b6116c991925060203d81116116d0575b6116c18183610df4565b8101906115d6565b90386116a1565b503d6116b7565b6116df611539565b611699565b6116fc915060203d81116116d0576116c18183610df4565b3861165d565b61170a611539565b611655565b61171f602061160961155b611546565b03915afa90811561174e575b600091611736575090565b610339915060203d81116116d0576116c18183610df4565b611756611539565b61172b565b806000190482118115151661176e570290565b611776610f07565b0290565b50634e487b7160e01b600052601260045260246000fd5b811561179b570490565b6117a361177a565b0490565b6117af610e78565b6117bc610f246000611103565b036117d257610339670de0b6b3a7640000611103565b6103396117f76117e06115f3565b6117f1670de0b6b3a7640000611103565b9061175b565b6117ff610e78565b90611791565b6102b961182c602061181861155b611546565b6370a0823190611632339261162560405190565b03915afa908115611864575b600091611846575b50611916565b61185e915060203d81116116d0576116c18183610df4565b38611840565b61186c611539565b611838565b6103396002611103565b1561188257565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b6103396001611103565b611902906118fd6118e2600661071a565b6118f66118ed611871565b9182141561187b565b6006611110565b61190d565b6102b96118f66118c7565b6102b990611976565b6102b9906118d1565b1561192657565b60405162461bcd60e51b81526020600482015260156024820152741c1b19585cd9481c1c9bdd9a591948185b5bdd5b9d605a1b6044820152606490fd5b81811061196e570390565b610fbf610f07565b6102b990600061199061198882611103565b835b1161191f565b33917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6119bc846104ce565b906119c660405190565b838152602090a26119f7826119e161155b61155b600b610709565b63573fef0a90803b15611abf575b60405161156f565b8252600490829084905af18015611ab2575b611a86575b50611a33611a1a6115f3565b91611a23611546565b85611a2d306104ce565b91611bab565b611a3b611ee9565b611a55611a4f82611a4a6115f3565b611963565b92611103565b611a60610339610e78565b03611a6c575090611b18565b611a7b611a80926117f1610e78565b611791565b90611b18565b611aa590833d8511611aab575b611a9d8183610df4565b8101906102a6565b38611a0e565b503d611a93565b611aba611539565b611a09565b611ac7600080fd5b6119ef565b15611ad357565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60006111b061119d83611b2a84610bc5565b93611b496001600160a01b0386166001600160a01b0384161415611acc565b610ee6611b5a88610f5a600261071a565b6002611110565b611b7a611b746103399263ffffffff1690565b60e01b90565b6001600160e01b03191690565b6001600160a01b039182168152911660208201526060810192916102b99160400152565b90611bf090611be16102b995600495611bc76323b872dd611b61565b93611bd160405190565b9788956020870190815201611b87565b60208201810382520383610df4565b611d13565b906102b9611c0260405190565b9283610df4565b61032460209167ffffffffffffffff8111611c2857601f01601f191690565b6102f0610ddd565b90611c42611c3d83611c09565b611bf5565b918252565b611c516020611c30565b7f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564602082015290565b610339611c47565b80151561038d565b905051906102b982611c82565b906103399160208183031215611c8a57611caf600080fd5b611c8a565b15611cbb57565b60405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608490fd5b90611d20611d2f926104ce565b90611d29611c7a565b91611d67565b8051611d3e610f246000611103565b11611d465750565b611d62816020611d576102b9945190565b818301019101611c97565b611cb4565b6103399291611d766000611103565b91611e42565b15611d8357565b60405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608490fd5b15611dde57565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b3d15611e3d57611e323d611c30565b903d6000602084013e565b606090565b6103399392600092839291611e63611e59306104ce565b8290311015611d7c565b611e74611e6f84611e8b565b611dd7565b602082019151925af1611e85611e23565b90611e9d565b3b611e99610f246000611103565b1190565b90919015611ea9575090565b8151611eb8610f246000611103565b1115611ec75750805190602001fd5b610b8290611ed460405190565b62461bcd60e51b815291829160048301610328565b611f0c611ef461170f565b611efc611546565b611f06600b610709565b90611f6c565b611f366000611f2161155b61155b600b610709565b63d0e30db090803b15611abf5760405161156f565b8252600490829084905af18015611f5f575b611f4f5750565b6102b9906000611a9d8183610df4565b611f67611539565b611f48565b611bf0600492611be16102b995611f8663a9059cbb611b61565b92611f9060405190565b968794602086019081520161073c565b6102b96105c133610e9a565b61190290611fbd6118e2600661071a565b6102b990611fcf565b6102b990611fac565b6102b990600090611fe8611fe283611103565b8261198a565b611ffc6117f782611ff76115f3565b61175b565b918261204433937f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436461202d866104ce565b9061203760405190565b858152602090a2846122bc565b61204f61155b611546565b906370a082319061205f306104ce565b602061206a60405190565b80956120768660e01b90565b82526001600160a01b038416600483015260249082905afa938415612202575b6000946121e2575b508184106120b9575b50505050506120b4611546565b611f6c565b6121406020859261215e956120d18561215a97611963565b98612116818b6120e761155b61155b600b610709565b61210883632e1a7d4d833b156121d5575b6040519687958694859360e01b90565b835260048301526024820190565b03925af180156121c8575b6121ab575b505061163261213661155b611546565b9161162560405190565b03915afa90811561219e575b600091612180575b50611963565b9290565b821061216d575b8080806120a7565b612178929350610f1e565b903880612165565b612198915060203d81116116d0576116c18183610df4565b38612154565b6121a6611539565b61214c565b816121c192903d10611aab57611a9d8183610df4565b3880612126565b6121d0611539565b612121565b6121dd600080fd5b6120f8565b6121fb91945060203d81116116d0576116c18183610df4565b923861209e565b61220a611539565b612096565b1561221657565b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561226c57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b6000906123116122cb83610bc5565b926122ea6001600160a01b0385166001600160a01b038516141561220f565b6111988361230b876122ff610eb18487610e82565b610fbf82821015612265565b92610e82565b6111b0611b5a84611a4a600261071a565b6102b990612331610b91610b28565b6123fb565b905051906102b982610382565b9061033991602081830312156123365761235b600080fd5b612336565b1561236757565b60405162461bcd60e51b815260206004820152602160248201527f50726f706f73616c206e6f742076616c696420666f722074686973205661756c6044820152601d60fa1b6064820152608490fd5b6103396040611bf5565b6102b991906111aa906020906001906123ea816123e487516001600160a01b031690565b90610c9a565b0192015190565b906102b9916123c0565b612459612407306104ce565b612453610b9d61242d602061241e61155b886104ce565b63fbfa77cf9061156f60405190565b825260049082905afa9081156124e4575b6000916124b6575b506001600160a01b031690565b14612360565b6124834261247c6124686123b6565b6001600160a01b0385168152916020830152565b60096123f1565b6124b17f1aae2ec5647db56da2d513de40528ba3565c6057525637050660c4323bbac7df9161080860405190565b0390a1565b6124d7915060203d81116124dd575b6124cf8183610df4565b810190612343565b38612446565b503d6124c5565b6124ec611539565b61243e565b6102b990612322565b612505610b91610b28565b6102b9612594565b1561251457565b60405162461bcd60e51b81526020600482015260156024820152745468657265206973206e6f2063616e64696461746560581b6044820152606490fd5b1561255857565b60405162461bcd60e51b815260206004820152601460248201527311195b185e481a185cc81b9bdd081c185cdcd95960621b6044820152606490fd5b6126ad600961269f6125a582610709565b60006125cd6125b382610bc5565b926125c66001600160a01b038516610b9d565b141561250d565b8060018501946126106126096125e28861071a565b7f000000000000000000000000000000000000000000000000000000000001518090610f1e565b4211612551565b019061261b82610709565b6126497f7f37d440e85aba7fbf641c4bda5ca4ef669a80bffaacde2aa8d9feb1b048c82c9161080860405190565b0390a16126758161266061155b61155b600b610709565b63fb61778790803b15611abf5760405161156f565b8252600490829084905af180156126d2575b6126b5575b505061269a6114e782610709565b610c9a565b6111aa64012a05f200611103565b6102b9611ee9565b816126cb92903d10611aab57611a9d8183610df4565b388061268c565b6126da611539565b612687565b6102b96124fa565b6102b9906126f6610b91610b28565b612730565b1561270257565b60405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606490fd5b61279061275c6102b99261155b61274b61037661155b611546565b6001600160a01b03831614156126fb565b6020612767826104ce565b6370a0823190611632612779306104ce565b9261278360405190565b9687948593849360e01b90565b03915afa9182156127cc575b6000926127ac575b503390611f6c565b6127c591925060203d81116116d0576116c18183610df4565b90386127a4565b6127d4611539565b61279c565b6102b9906126e756fea2646970667358221220ea0f05418e25b7d3b83fe50d77591e28701b0d49659e2a3a5c7eee47cd8e9b8364736f6c634300080e0033
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.