Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Oracle | 21302182 | 5 days ago | IN | 0 ETH | 0.00055624 | ||||
Set Oracle | 21302180 | 5 days ago | IN | 0 ETH | 0.00053951 | ||||
Set Oracle | 21273356 | 9 days ago | IN | 0 ETH | 0.00048492 | ||||
Set Oracle | 21273354 | 9 days ago | IN | 0 ETH | 0.00049475 | ||||
Set Oracle | 21273322 | 9 days ago | IN | 0 ETH | 0.00052276 | ||||
Set Oracle | 21273320 | 9 days ago | IN | 0 ETH | 0.00054424 | ||||
Set Oracle | 21252461 | 12 days ago | IN | 0 ETH | 0.00072537 | ||||
Set Oracle | 21021206 | 45 days ago | IN | 0 ETH | 0.00049275 | ||||
Set Oracle | 21015493 | 45 days ago | IN | 0 ETH | 0.00043667 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20980809 | 50 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
AprOracle
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-10-16 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.18 ^0.8.0; // lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // lib/openzeppelin-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // lib/tokenized-strategy/src/interfaces/IBaseStrategy.sol interface IBaseStrategy { function tokenizedStrategyAddress() external view returns (address); /*////////////////////////////////////////////////////////////// IMMUTABLE FUNCTIONS //////////////////////////////////////////////////////////////*/ function availableDepositLimit( address _owner ) external view returns (uint256); function availableWithdrawLimit( address _owner ) external view returns (uint256); function deployFunds(uint256 _assets) external; function freeFunds(uint256 _amount) external; function harvestAndReport() external returns (uint256); function tendThis(uint256 _totalIdle) external; function shutdownWithdraw(uint256 _amount) external; function tendTrigger() external view returns (bool, bytes memory); } // src/utils/Governance.sol contract Governance { /// @notice Emitted when the governance address is updated. event GovernanceTransferred( address indexed previousGovernance, address indexed newGovernance ); modifier onlyGovernance() { _checkGovernance(); _; } /// @notice Checks if the msg sender is the governance. function _checkGovernance() internal view virtual { require(governance == msg.sender, "!governance"); } /// @notice Address that can set the default base fee and provider address public governance; constructor(address _governance) { governance = _governance; emit GovernanceTransferred(address(0), _governance); } /** * @notice Sets a new address as the governance of the contract. * @dev Throws if the caller is not current governance. * @param _newGovernance The new governance address. */ function transferGovernance( address _newGovernance ) external virtual onlyGovernance { require(_newGovernance != address(0), "ZERO ADDRESS"); address oldGovernance = governance; governance = _newGovernance; emit GovernanceTransferred(oldGovernance, _newGovernance); } } // lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.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); } // lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4626.sol) /** * @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626]. * * _Available since v4.7._ */ interface IERC4626 is IERC20, IERC20Metadata { event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares); event Withdraw( address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares ); /** * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing. * * - MUST be an ERC-20 token contract. * - MUST NOT revert. */ function asset() external view returns (address assetTokenAddress); /** * @dev Returns the total amount of the underlying asset that is “managed” by Vault. * * - SHOULD include any compounding that occurs from yield. * - MUST be inclusive of any fees that are charged against assets in the Vault. * - MUST NOT revert. */ function totalAssets() external view returns (uint256 totalManagedAssets); /** * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal * scenario where all the conditions are met. * * - MUST NOT be inclusive of any fees that are charged against assets in the Vault. * - MUST NOT show any variations depending on the caller. * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange. * - MUST NOT revert. * * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and * from. */ function convertToShares(uint256 assets) external view returns (uint256 shares); /** * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal * scenario where all the conditions are met. * * - MUST NOT be inclusive of any fees that are charged against assets in the Vault. * - MUST NOT show any variations depending on the caller. * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange. * - MUST NOT revert. * * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and * from. */ function convertToAssets(uint256 shares) external view returns (uint256 assets); /** * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver, * through a deposit call. * * - MUST return a limited value if receiver is subject to some deposit limit. * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited. * - MUST NOT revert. */ function maxDeposit(address receiver) external view returns (uint256 maxAssets); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given * current on-chain conditions. * * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit * call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called * in the same transaction. * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the * deposit would be accepted, regardless if the user has enough tokens approved, etc. * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees. * - MUST NOT revert. * * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in * share price or some other type of condition, meaning the depositor will lose assets by depositing. */ function previewDeposit(uint256 assets) external view returns (uint256 shares); /** * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens. * * - MUST emit the Deposit event. * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the * deposit execution, and are accounted for during deposit. * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not * approving enough underlying tokens to the Vault contract, etc). * * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token. */ function deposit(uint256 assets, address receiver) external returns (uint256 shares); /** * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call. * - MUST return a limited value if receiver is subject to some mint limit. * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted. * - MUST NOT revert. */ function maxMint(address receiver) external view returns (uint256 maxShares); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given * current on-chain conditions. * * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call * in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the * same transaction. * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint * would be accepted, regardless if the user has enough tokens approved, etc. * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees. * - MUST NOT revert. * * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in * share price or some other type of condition, meaning the depositor will lose assets by minting. */ function previewMint(uint256 shares) external view returns (uint256 assets); /** * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens. * * - MUST emit the Deposit event. * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint * execution, and are accounted for during mint. * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not * approving enough underlying tokens to the Vault contract, etc). * * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token. */ function mint(uint256 shares, address receiver) external returns (uint256 assets); /** * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the * Vault, through a withdraw call. * * - MUST return a limited value if owner is subject to some withdrawal limit or timelock. * - MUST NOT revert. */ function maxWithdraw(address owner) external view returns (uint256 maxAssets); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, * given current on-chain conditions. * * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw * call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if * called * in the same transaction. * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though * the withdrawal would be accepted, regardless if the user has enough shares, etc. * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees. * - MUST NOT revert. * * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in * share price or some other type of condition, meaning the depositor will lose assets by depositing. */ function previewWithdraw(uint256 assets) external view returns (uint256 shares); /** * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver. * * - MUST emit the Withdraw event. * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the * withdraw execution, and are accounted for during withdraw. * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner * not having enough shares, etc). * * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed. * Those methods should be performed separately. */ function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares); /** * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, * through a redeem call. * * - MUST return a limited value if owner is subject to some withdrawal limit or timelock. * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock. * - MUST NOT revert. */ function maxRedeem(address owner) external view returns (uint256 maxShares); /** * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block, * given current on-chain conditions. * * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call * in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the * same transaction. * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the * redemption would be accepted, regardless if the user has enough shares, etc. * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees. * - MUST NOT revert. * * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in * share price or some other type of condition, meaning the depositor will lose assets by redeeming. */ function previewRedeem(uint256 shares) external view returns (uint256 assets); /** * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver. * * - MUST emit the Withdraw event. * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the * redeem execution, and are accounted for during redeem. * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner * not having enough shares, etc). * * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed. * Those methods should be performed separately. */ function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets); } // lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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, allowance(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 = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * 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; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _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; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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 Updates `owner` s allowance for `spender` based on spent `amount`. * * 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 {} } // lib/yearn-vaults-v3/contracts/interfaces/IVault.sol interface IVault is IERC4626 { // STRATEGY EVENTS event StrategyChanged(address indexed strategy, uint256 change_type); event StrategyReported( address indexed strategy, uint256 gain, uint256 loss, uint256 current_debt, uint256 protocol_fees, uint256 total_fees, uint256 total_refunds ); // DEBT MANAGEMENT EVENTS event DebtUpdated( address indexed strategy, uint256 current_debt, uint256 new_debt ); // ROLE UPDATES event RoleSet(address indexed account, uint256 role); event UpdateRoleManager(address indexed role_manager); event UpdateAccountant(address indexed accountant); event UpdateDefaultQueue(address[] new_default_queue); event UpdateUseDefaultQueue(bool use_default_queue); event UpdatedMaxDebtForStrategy( address indexed sender, address indexed strategy, uint256 new_debt ); event UpdateAutoAllocate(bool auto_allocate); event UpdateDepositLimit(uint256 deposit_limit); event UpdateMinimumTotalIdle(uint256 minimum_total_idle); event UpdateProfitMaxUnlockTime(uint256 profit_max_unlock_time); event DebtPurchased(address indexed strategy, uint256 amount); event Shutdown(); struct StrategyParams { uint256 activation; uint256 last_report; uint256 current_debt; uint256 max_debt; } function FACTORY() external view returns (uint256); function strategies(address) external view returns (StrategyParams memory); function default_queue(uint256) external view returns (address); function use_default_queue() external view returns (bool); function auto_allocate() external view returns (bool); function minimum_total_idle() external view returns (uint256); function deposit_limit() external view returns (uint256); function deposit_limit_module() external view returns (address); function withdraw_limit_module() external view returns (address); function accountant() external view returns (address); function roles(address) external view returns (uint256); function role_manager() external view returns (address); function future_role_manager() external view returns (address); function isShutdown() external view returns (bool); function nonces(address) external view returns (uint256); function initialize( address, string memory, string memory, address, uint256 ) external; function setName(string memory) external; function setSymbol(string memory) external; function set_accountant(address new_accountant) external; function set_default_queue(address[] memory new_default_queue) external; function set_use_default_queue(bool) external; function set_auto_allocate(bool) external; function set_deposit_limit(uint256 deposit_limit) external; function set_deposit_limit( uint256 deposit_limit, bool should_override ) external; function set_deposit_limit_module( address new_deposit_limit_module ) external; function set_deposit_limit_module( address new_deposit_limit_module, bool should_override ) external; function set_withdraw_limit_module( address new_withdraw_limit_module ) external; function set_minimum_total_idle(uint256 minimum_total_idle) external; function setProfitMaxUnlockTime( uint256 new_profit_max_unlock_time ) external; function set_role(address account, uint256 role) external; function add_role(address account, uint256 role) external; function remove_role(address account, uint256 role) external; function transfer_role_manager(address role_manager) external; function accept_role_manager() external; function unlockedShares() external view returns (uint256); function pricePerShare() external view returns (uint256); function get_default_queue() external view returns (address[] memory); function process_report( address strategy ) external returns (uint256, uint256); function buy_debt(address strategy, uint256 amount) external; function add_strategy(address new_strategy) external; function revoke_strategy(address strategy) external; function force_revoke_strategy(address strategy) external; function update_max_debt_for_strategy( address strategy, uint256 new_max_debt ) external; function update_debt( address strategy, uint256 target_debt ) external returns (uint256); function update_debt( address strategy, uint256 target_debt, uint256 max_loss ) external returns (uint256); function shutdown_vault() external; function totalIdle() external view returns (uint256); function totalDebt() external view returns (uint256); function apiVersion() external view returns (string memory); function assess_share_of_unrealised_losses( address strategy, uint256 assets_needed ) external view returns (uint256); function profitMaxUnlockTime() external view returns (uint256); function fullProfitUnlockDate() external view returns (uint256); function profitUnlockingRate() external view returns (uint256); function lastProfitUpdate() external view returns (uint256); //// NON-STANDARD ERC-4626 FUNCTIONS \\\\ function withdraw( uint256 assets, address receiver, address owner, uint256 max_loss ) external returns (uint256); function withdraw( uint256 assets, address receiver, address owner, uint256 max_loss, address[] memory strategies ) external returns (uint256); function redeem( uint256 shares, address receiver, address owner, uint256 max_loss ) external returns (uint256); function redeem( uint256 shares, address receiver, address owner, uint256 max_loss, address[] memory strategies ) external returns (uint256); function maxWithdraw( address owner, uint256 max_loss ) external view returns (uint256); function maxWithdraw( address owner, uint256 max_loss, address[] memory strategies ) external view returns (uint256); function maxRedeem( address owner, uint256 max_loss ) external view returns (uint256); function maxRedeem( address owner, uint256 max_loss, address[] memory strategies ) external view returns (uint256); //// NON-STANDARD ERC-20 FUNCTIONS \\\\ function DOMAIN_SEPARATOR() external view returns (bytes32); function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external returns (bool); } // lib/tokenized-strategy/src/interfaces/ITokenizedStrategy.sol // Interface that implements the 4626 standard and the implementation functions interface ITokenizedStrategy is IERC4626, IERC20Permit { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event StrategyShutdown(); event NewTokenizedStrategy( address indexed strategy, address indexed asset, string apiVersion ); event Reported( uint256 profit, uint256 loss, uint256 protocolFees, uint256 performanceFees ); event UpdatePerformanceFeeRecipient( address indexed newPerformanceFeeRecipient ); event UpdateKeeper(address indexed newKeeper); event UpdatePerformanceFee(uint16 newPerformanceFee); event UpdateManagement(address indexed newManagement); event UpdateEmergencyAdmin(address indexed newEmergencyAdmin); event UpdateProfitMaxUnlockTime(uint256 newProfitMaxUnlockTime); event UpdatePendingManagement(address indexed newPendingManagement); /*////////////////////////////////////////////////////////////// INITIALIZATION //////////////////////////////////////////////////////////////*/ function initialize( address _asset, string memory _name, address _management, address _performanceFeeRecipient, address _keeper ) external; /*////////////////////////////////////////////////////////////// NON-STANDARD 4626 OPTIONS //////////////////////////////////////////////////////////////*/ function withdraw( uint256 assets, address receiver, address owner, uint256 maxLoss ) external returns (uint256); function redeem( uint256 shares, address receiver, address owner, uint256 maxLoss ) external returns (uint256); function maxWithdraw( address owner, uint256 /*maxLoss*/ ) external view returns (uint256); function maxRedeem( address owner, uint256 /*maxLoss*/ ) external view returns (uint256); /*////////////////////////////////////////////////////////////// MODIFIER HELPERS //////////////////////////////////////////////////////////////*/ function requireManagement(address _sender) external view; function requireKeeperOrManagement(address _sender) external view; function requireEmergencyAuthorized(address _sender) external view; /*////////////////////////////////////////////////////////////// KEEPERS FUNCTIONS //////////////////////////////////////////////////////////////*/ function tend() external; function report() external returns (uint256 _profit, uint256 _loss); /*////////////////////////////////////////////////////////////// CONSTANTS //////////////////////////////////////////////////////////////*/ function MAX_FEE() external view returns (uint16); function FACTORY() external view returns (address); /*////////////////////////////////////////////////////////////// GETTERS //////////////////////////////////////////////////////////////*/ function apiVersion() external view returns (string memory); function pricePerShare() external view returns (uint256); function management() external view returns (address); function pendingManagement() external view returns (address); function keeper() external view returns (address); function emergencyAdmin() external view returns (address); function performanceFee() external view returns (uint16); function performanceFeeRecipient() external view returns (address); function fullProfitUnlockDate() external view returns (uint256); function profitUnlockingRate() external view returns (uint256); function profitMaxUnlockTime() external view returns (uint256); function lastReport() external view returns (uint256); function isShutdown() external view returns (bool); function unlockedShares() external view returns (uint256); /*////////////////////////////////////////////////////////////// SETTERS //////////////////////////////////////////////////////////////*/ function setPendingManagement(address) external; function acceptManagement() external; function setKeeper(address _keeper) external; function setEmergencyAdmin(address _emergencyAdmin) external; function setPerformanceFee(uint16 _performanceFee) external; function setPerformanceFeeRecipient( address _performanceFeeRecipient ) external; function setProfitMaxUnlockTime(uint256 _profitMaxUnlockTime) external; function setName(string calldata _newName) external; function shutdownStrategy() external; function emergencyWithdraw(uint256 _amount) external; } // lib/tokenized-strategy/src/interfaces/IStrategy.sol interface IStrategy is IBaseStrategy, ITokenizedStrategy {} // src/AprOracle/AprOracle.sol interface IOracle { function aprAfterDebtChange( address _strategy, int256 _delta ) external view returns (uint256); } /** * @title APR Oracle * @author Yearn.finance * @dev Contract to easily retrieve the APR's of V3 vaults and * strategies. * * Can be used to check the current APR of any vault or strategy * based on the current profit unlocking rate. As well as the * expected APR given some change in totalAssets. * * This can also be used to retrieve the expected APR a strategy * is making, thats yet to be reported, if a strategy specific * oracle has been added. * * NOTE: All values are just at the specific time called and subject * to change. */ contract AprOracle is Governance { // Mapping of a strategy to its specific apr oracle. mapping(address => address) public oracles; // Used to get the Current and Expected APR'S. uint256 internal constant MAX_BPS = 10_000; uint256 internal constant MAX_BPS_EXTENDED = 1_000_000_000_000; uint256 internal constant SECONDS_PER_YEAR = 31_556_952; address internal constant LEGACY_ORACLE = 0x27aD2fFc74F74Ed27e1C0A19F1858dD0963277aE; constructor(address _governance) Governance(_governance) {} /** * @notice Get the current APR a strategy is earning. * @dev Will revert if an oracle has not been set for that strategy. * * This will be different than the {getExpectedApr()} which returns * the current APR based off of previously reported profits that * are currently unlocking. * * This will return the APR the strategy is currently earning that * has yet to be reported. * * @param _strategy Address of the strategy to check. * @param _debtChange Positive or negative change in debt. * @return apr The expected APR it will be earning represented as 1e18. */ function getStrategyApr( address _strategy, int256 _debtChange ) public view virtual returns (uint256 apr) { // Get the oracle set for this specific strategy. address oracle = oracles[_strategy]; // If not set, check the legacy oracle. if (oracle == address(0)) { // Do a low level call in case the legacy oracle is not deployed. (bool success, bytes memory data) = LEGACY_ORACLE.staticcall( abi.encodeWithSelector( AprOracle(LEGACY_ORACLE).oracles.selector, _strategy ) ); if (success && data.length > 0) { oracle = abi.decode(data, (address)); } } // Don't revert if a oracle is not set. if (oracle != address(0)) { return IOracle(oracle).aprAfterDebtChange(_strategy, _debtChange); } else { // If the strategy is a V3 Multi strategy vault user weighted average. try IVault(_strategy).role_manager() returns (address) { return getWeightedAverageApr(_strategy, _debtChange); } catch { // If the strategy is a v3 TokenizedStrategy, we can default to the expected apr. try IStrategy(_strategy).fullProfitUnlockDate() returns ( uint256 ) { return getExpectedApr(_strategy, _debtChange); } catch { // Else just return 0. return 0; } } } } /** * @notice Set a custom APR `_oracle` for a `_strategy`. * @dev Can only be called by the Apr Oracle's `governance` or * management of the `_strategy`. * * The `_oracle` will need to implement the IOracle interface. * * @param _strategy Address of the strategy. * @param _oracle Address of the APR Oracle. */ function setOracle(address _strategy, address _oracle) external virtual { if (governance != msg.sender) { require( msg.sender == IStrategy(_strategy).management(), "!authorized" ); } oracles[_strategy] = _oracle; } /** * @notice Get the current APR for a V3 vault or strategy. * @dev This returns the current APR based off the current * rate of profit unlocking for either a vault or strategy. * * Will return 0 if there is no profit unlocking or no assets. * * @param _vault The address of the vault or strategy. * @return apr The current apr expressed as 1e18. */ function getCurrentApr( address _vault ) external view virtual returns (uint256 apr) { return getExpectedApr(_vault, 0); } /** * @notice Get the expected APR for a V3 vault or strategy based on `_delta`. * @dev This returns the expected APR based off the current * rate of profit unlocking for either a vault or strategy * given some change in the total assets. * * Will return 0 if there is no profit unlocking or no assets. * * This can be used to predict the change in current apr given some * deposit or withdraw to the vault. * * @param _vault The address of the vault or strategy. * @param _delta The positive or negative change in `totalAssets`. * @return apr The expected apr expressed as 1e18. */ function getExpectedApr( address _vault, int256 _delta ) public view virtual returns (uint256 apr) { IVault vault = IVault(_vault); // Check if the full profit has already been unlocked. if (vault.fullProfitUnlockDate() <= block.timestamp) return 0; // Need the total assets in the vault post delta. uint256 assets = uint256(int256(vault.totalAssets()) + _delta); // No apr if there are no assets. if (assets == 0) return 0; // We need to get the amount of assets that are unlocking per second. // `profitUnlockingRate` is in shares so we convert it to assets. uint256 assetUnlockingRate = vault.convertToAssets( vault.profitUnlockingRate() ); // APR = assets unlocking per second * seconds per year / the total assets. apr = (1e18 * assetUnlockingRate * SECONDS_PER_YEAR) / MAX_BPS_EXTENDED / assets; } /** * @notice Get the current weighted average APR for a V3 vault. * @dev This is the sum of all the current APR's of the strategies in the vault. * @param _vault The address of the vault. * @return apr The weighted average apr expressed as 1e18. */ function getWeightedAverageApr( address _vault, int256 _delta ) public view virtual returns (uint256) { address[] memory strategies = IVault(_vault).get_default_queue(); uint256 totalAssets = IVault(_vault).totalAssets(); uint256 totalApr = 0; for (uint256 i = 0; i < strategies.length; i++) { uint256 debt = IVault(_vault) .strategies(strategies[i]) .current_debt; if (debt == 0) continue; // Get a performance fee if the strategy has one. (bool success, bytes memory fee) = strategies[i].staticcall( abi.encodeWithSelector( IStrategy(strategies[i]).performanceFee.selector ) ); uint256 performanceFee; if (success) { performanceFee = abi.decode(fee, (uint256)); } // Get the effective debt change for the strategy. int256 debtChange = (_delta * int256(debt)) / int256(totalAssets); // Add the weighted apr of the strategy to the total apr. totalApr += (getStrategyApr(strategies[i], debtChange) * uint256(int256(debt) + debtChange) * (MAX_BPS - performanceFee)) / MAX_BPS; } // Divide by the total assets to get apr as 1e18. return totalApr / uint256(int256(totalAssets) + _delta); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernance","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"getCurrentApr","outputs":[{"internalType":"uint256","name":"apr","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"int256","name":"_delta","type":"int256"}],"name":"getExpectedApr","outputs":[{"internalType":"uint256","name":"apr","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"int256","name":"_debtChange","type":"int256"}],"name":"getStrategyApr","outputs":[{"internalType":"uint256","name":"apr","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"int256","name":"_delta","type":"int256"}],"name":"getWeightedAverageApr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"oracles","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernance","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610f53380380610f5383398101604081905261002f9161007e565b600080546001600160a01b0319166001600160a01b03831690811782556040518392907f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce80908290a350506100ae565b60006020828403121561009057600080fd5b81516001600160a01b03811681146100a757600080fd5b9392505050565b610e96806100bd6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638c2369641161005b5780638c23696414610106578063addd509914610119578063c20e636214610142578063d38bfff41461015557600080fd5b80634d060e361461008d57806359d8703d146100b35780635aa6e675146100c65780635c38eb3a146100f1575b600080fd5b6100a061009b366004610ae1565b610168565b6040519081526020015b60405180910390f35b6100a06100c1366004610b0d565b6103d5565b6000546100d9906001600160a01b031681565b6040516001600160a01b0390911681526020016100aa565b6101046100ff366004610b31565b6103e2565b005b6100a0610114366004610ae1565b6104d7565b6100d9610127366004610b0d565b6001602052600090815260409020546001600160a01b031681565b6100a0610150366004610ae1565b6106ed565b610104610163366004610b0d565b6109e2565b6001600160a01b038083166000908152600160205260408120549091168061026457604080516001600160a01b03861660248083019190915282518083039091018152604490910182526020810180516001600160e01b031663addd509960e01b179052905160009182917327ad2ffc74f74ed27e1c0a19f1858dd0963277ae916101f291610b6a565b600060405180830381855afa9150503d806000811461022d576040519150601f19603f3d011682016040523d82523d6000602084013e610232565b606091505b5091509150818015610245575060008151115b15610261578080602001905181019061025e9190610b99565b92505b50505b6001600160a01b038116156102ec57604051632d9e85bd60e01b81526001600160a01b03858116600483015260248201859052821690632d9e85bd90604401602060405180830381865afa1580156102c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e49190610bb6565b9150506103cf565b836001600160a01b03166379b989176040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610346575060408051601f3d908101601f1916820190925261034391810190610b99565b60015b6103c557836001600160a01b0316632d6326926040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156103a4575060408051601f3d908101601f191682019092526103a191810190610bb6565b60015b6103b25760009150506103cf565b6103bc85856104d7565b925050506103cf565b6103bc85856106ed565b92915050565b60006103cf8260006104d7565b6000546001600160a01b031633146104a957816001600160a01b03166388a8d6026040518163ffffffff1660e01b8152600401602060405180830381865afa158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190610b99565b6001600160a01b0316336001600160a01b0316146104a95760405162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b60448201526064015b60405180910390fd5b6001600160a01b03918216600090815260016020526040902080546001600160a01b03191691909216179055565b60008083905042816001600160a01b0316632d6326926040518163ffffffff1660e01b8152600401602060405180830381865afa15801561051c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105409190610bb6565b1161054f5760009150506103cf565b600083826001600160a01b03166301e1d1146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b49190610bb6565b6105be9190610be5565b9050806000036105d3576000925050506103cf565b6000826001600160a01b03166307a2d13a846001600160a01b0316635141eebb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190610bb6565b6040518263ffffffff1660e01b815260040161066491815260200190565b602060405180830381865afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a59190610bb6565b90508164e8d4a510006301e185586106c584670de0b6b3a7640000610c0d565b6106cf9190610c0d565b6106d99190610c3a565b6106e39190610c3a565b9695505050505050565b600080836001600160a01b031663a9bbf1cc6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561072e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107569190810190610c95565b90506000846001600160a01b03166301e1d1146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bc9190610bb6565b90506000805b83518110156109cd576000876001600160a01b03166339ebf8238684815181106107ee576107ee610d47565b60200260200101516040518263ffffffff1660e01b815260040161082191906001600160a01b0391909116815260200190565b608060405180830381865afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108629190610d5d565b6040015190508060000361087657506109bb565b60008086848151811061088b5761088b610d47565b602090810291909101810151604080516004815260248101825292830180516001600160e01b03166343bc43c160e11b179052516001600160a01b03909116916108d491610b6a565b600060405180830381855afa9150503d806000811461090f576040519150601f19603f3d011682016040523d82523d6000602084013e610914565b606091505b50915091506000821561093857818060200190518101906109359190610bb6565b90505b600087610945868d610dc3565b61094f9190610df3565b905061271061095e8382610e21565b6109688388610be5565b61098b8c8a8151811061097d5761097d610d47565b602002602001015185610168565b6109959190610c0d565b61099f9190610c0d565b6109a99190610c3a565b6109b39088610e34565b965050505050505b806109c581610e47565b9150506107c2565b506109d88583610be5565b6106e39082610c3a565b6109ea610a7f565b6001600160a01b038116610a2f5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f204144445245535360a01b60448201526064016104a0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce809190a35050565b6000546001600160a01b03163314610ac75760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b60448201526064016104a0565b565b6001600160a01b0381168114610ade57600080fd5b50565b60008060408385031215610af457600080fd5b8235610aff81610ac9565b946020939093013593505050565b600060208284031215610b1f57600080fd5b8135610b2a81610ac9565b9392505050565b60008060408385031215610b4457600080fd5b8235610b4f81610ac9565b91506020830135610b5f81610ac9565b809150509250929050565b6000825160005b81811015610b8b5760208186018101518583015201610b71565b506000920191825250919050565b600060208284031215610bab57600080fd5b8151610b2a81610ac9565b600060208284031215610bc857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018281126000831280158216821582161715610c0557610c05610bcf565b505092915050565b80820281158282048414176103cf576103cf610bcf565b634e487b7160e01b600052601260045260246000fd5b600082610c4957610c49610c24565b500490565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610c8d57610c8d610c4e565b604052919050565b60006020808385031215610ca857600080fd5b825167ffffffffffffffff80821115610cc057600080fd5b818501915085601f830112610cd457600080fd5b815181811115610ce657610ce6610c4e565b8060051b9150610cf7848301610c64565b8181529183018401918481019088841115610d1157600080fd5b938501935b83851015610d3b5784519250610d2b83610ac9565b8282529385019390850190610d16565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060808284031215610d6f57600080fd5b6040516080810181811067ffffffffffffffff82111715610d9257610d92610c4e565b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b80820260008212600160ff1b84141615610ddf57610ddf610bcf565b81810583148215176103cf576103cf610bcf565b600082610e0257610e02610c24565b600160ff1b821460001984141615610e1c57610e1c610bcf565b500590565b818103818111156103cf576103cf610bcf565b808201808211156103cf576103cf610bcf565b600060018201610e5957610e59610bcf565b506001019056fea2646970667358221220da0e1e7a6d6e86633ccca28d34ec5b1b829001ad625792f115c77420454b046664736f6c634300081200330000000000000000000000006f3cbe2ab3483ec4ba7b672fbdca0e9b33f88db8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638c2369641161005b5780638c23696414610106578063addd509914610119578063c20e636214610142578063d38bfff41461015557600080fd5b80634d060e361461008d57806359d8703d146100b35780635aa6e675146100c65780635c38eb3a146100f1575b600080fd5b6100a061009b366004610ae1565b610168565b6040519081526020015b60405180910390f35b6100a06100c1366004610b0d565b6103d5565b6000546100d9906001600160a01b031681565b6040516001600160a01b0390911681526020016100aa565b6101046100ff366004610b31565b6103e2565b005b6100a0610114366004610ae1565b6104d7565b6100d9610127366004610b0d565b6001602052600090815260409020546001600160a01b031681565b6100a0610150366004610ae1565b6106ed565b610104610163366004610b0d565b6109e2565b6001600160a01b038083166000908152600160205260408120549091168061026457604080516001600160a01b03861660248083019190915282518083039091018152604490910182526020810180516001600160e01b031663addd509960e01b179052905160009182917327ad2ffc74f74ed27e1c0a19f1858dd0963277ae916101f291610b6a565b600060405180830381855afa9150503d806000811461022d576040519150601f19603f3d011682016040523d82523d6000602084013e610232565b606091505b5091509150818015610245575060008151115b15610261578080602001905181019061025e9190610b99565b92505b50505b6001600160a01b038116156102ec57604051632d9e85bd60e01b81526001600160a01b03858116600483015260248201859052821690632d9e85bd90604401602060405180830381865afa1580156102c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e49190610bb6565b9150506103cf565b836001600160a01b03166379b989176040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610346575060408051601f3d908101601f1916820190925261034391810190610b99565b60015b6103c557836001600160a01b0316632d6326926040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156103a4575060408051601f3d908101601f191682019092526103a191810190610bb6565b60015b6103b25760009150506103cf565b6103bc85856104d7565b925050506103cf565b6103bc85856106ed565b92915050565b60006103cf8260006104d7565b6000546001600160a01b031633146104a957816001600160a01b03166388a8d6026040518163ffffffff1660e01b8152600401602060405180830381865afa158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190610b99565b6001600160a01b0316336001600160a01b0316146104a95760405162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b60448201526064015b60405180910390fd5b6001600160a01b03918216600090815260016020526040902080546001600160a01b03191691909216179055565b60008083905042816001600160a01b0316632d6326926040518163ffffffff1660e01b8152600401602060405180830381865afa15801561051c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105409190610bb6565b1161054f5760009150506103cf565b600083826001600160a01b03166301e1d1146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b49190610bb6565b6105be9190610be5565b9050806000036105d3576000925050506103cf565b6000826001600160a01b03166307a2d13a846001600160a01b0316635141eebb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190610bb6565b6040518263ffffffff1660e01b815260040161066491815260200190565b602060405180830381865afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a59190610bb6565b90508164e8d4a510006301e185586106c584670de0b6b3a7640000610c0d565b6106cf9190610c0d565b6106d99190610c3a565b6106e39190610c3a565b9695505050505050565b600080836001600160a01b031663a9bbf1cc6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561072e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107569190810190610c95565b90506000846001600160a01b03166301e1d1146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bc9190610bb6565b90506000805b83518110156109cd576000876001600160a01b03166339ebf8238684815181106107ee576107ee610d47565b60200260200101516040518263ffffffff1660e01b815260040161082191906001600160a01b0391909116815260200190565b608060405180830381865afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108629190610d5d565b6040015190508060000361087657506109bb565b60008086848151811061088b5761088b610d47565b602090810291909101810151604080516004815260248101825292830180516001600160e01b03166343bc43c160e11b179052516001600160a01b03909116916108d491610b6a565b600060405180830381855afa9150503d806000811461090f576040519150601f19603f3d011682016040523d82523d6000602084013e610914565b606091505b50915091506000821561093857818060200190518101906109359190610bb6565b90505b600087610945868d610dc3565b61094f9190610df3565b905061271061095e8382610e21565b6109688388610be5565b61098b8c8a8151811061097d5761097d610d47565b602002602001015185610168565b6109959190610c0d565b61099f9190610c0d565b6109a99190610c3a565b6109b39088610e34565b965050505050505b806109c581610e47565b9150506107c2565b506109d88583610be5565b6106e39082610c3a565b6109ea610a7f565b6001600160a01b038116610a2f5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f204144445245535360a01b60448201526064016104a0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce809190a35050565b6000546001600160a01b03163314610ac75760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b60448201526064016104a0565b565b6001600160a01b0381168114610ade57600080fd5b50565b60008060408385031215610af457600080fd5b8235610aff81610ac9565b946020939093013593505050565b600060208284031215610b1f57600080fd5b8135610b2a81610ac9565b9392505050565b60008060408385031215610b4457600080fd5b8235610b4f81610ac9565b91506020830135610b5f81610ac9565b809150509250929050565b6000825160005b81811015610b8b5760208186018101518583015201610b71565b506000920191825250919050565b600060208284031215610bab57600080fd5b8151610b2a81610ac9565b600060208284031215610bc857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018281126000831280158216821582161715610c0557610c05610bcf565b505092915050565b80820281158282048414176103cf576103cf610bcf565b634e487b7160e01b600052601260045260246000fd5b600082610c4957610c49610c24565b500490565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610c8d57610c8d610c4e565b604052919050565b60006020808385031215610ca857600080fd5b825167ffffffffffffffff80821115610cc057600080fd5b818501915085601f830112610cd457600080fd5b815181811115610ce657610ce6610c4e565b8060051b9150610cf7848301610c64565b8181529183018401918481019088841115610d1157600080fd5b938501935b83851015610d3b5784519250610d2b83610ac9565b8282529385019390850190610d16565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060808284031215610d6f57600080fd5b6040516080810181811067ffffffffffffffff82111715610d9257610d92610c4e565b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b80820260008212600160ff1b84141615610ddf57610ddf610bcf565b81810583148215176103cf576103cf610bcf565b600082610e0257610e02610c24565b600160ff1b821460001984141615610e1c57610e1c610bcf565b500590565b818103818111156103cf576103cf610bcf565b808201808211156103cf576103cf610bcf565b600060018201610e5957610e59610bcf565b506001019056fea2646970667358221220da0e1e7a6d6e86633ccca28d34ec5b1b829001ad625792f115c77420454b046664736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006f3cbe2ab3483ec4ba7b672fbdca0e9b33f88db8
-----Decoded View---------------
Arg [0] : _governance (address): 0x6f3cBE2ab3483EC4BA7B672fbdCa0E9B33F88db8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006f3cbe2ab3483ec4ba7b672fbdca0e9b33f88db8
Deployed Bytecode Sourcemap
49651:7634:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50858:1657;;;;;;:::i;:::-;;:::i;:::-;;;615:25:1;;;603:2;588:18;50858:1657:0;;;;;;;;53621:150;;;;;;:::i;:::-;;:::i;9325:25::-;;;;;-1:-1:-1;;;;;9325:25:0;;;;;;-1:-1:-1;;;;;1067:32:1;;;1049:51;;1037:2;1022:18;9325:25:0;903:203:1;52895:308:0;;;;;;:::i;:::-;;:::i;:::-;;54451:1010;;;;;;:::i;:::-;;:::i;49749:42::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;49749:42:0;;;55754:1528;;;;;;:::i;:::-;;:::i;9714:325::-;;;;;;:::i;:::-;;:::i;50858:1657::-;-1:-1:-1;;;;;51075:18:0;;;50975:11;51075:18;;;:7;:18;;;;;;50975:11;;51075:18;;51155:480;;51354:137;;;-1:-1:-1;;;;;1067:32:1;;51354:137:0;;;;1049:51:1;;;;51354:137:0;;;;;;;;;;1022:18:1;;;;51354:137:0;;;;;;;-1:-1:-1;;;;;51354:137:0;-1:-1:-1;;;51354:137:0;;;51311:195;;51276:12;;;;50085:42;;51311:195;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51275:231;;;;51525:7;:26;;;;;51550:1;51536:4;:11;:15;51525:26;51521:103;;;51592:4;51581:27;;;;;;;;;;;;:::i;:::-;51572:36;;51521:103;51181:454;;51155:480;-1:-1:-1;;;;;51700:20:0;;;51696:812;;51744:58;;-1:-1:-1;;;51744:58:0;;-1:-1:-1;;;;;2375:32:1;;;51744:58:0;;;2357:51:1;2424:18;;;2417:34;;;51744::0;;;;;2330:18:1;;51744:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51737:65;;;;;51696:812;51930:9;-1:-1:-1;;;;;51923:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51923:32:0;;;;;;;;-1:-1:-1;;51923:32:0;;;;;;;;;;;;:::i;:::-;;;51919:578;;52200:9;-1:-1:-1;;;;;52190:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52190:43:0;;;;;;;;-1:-1:-1;;52190:43:0;;;;;;;;;;;;:::i;:::-;;;52186:296;;52461:1;52454:8;;;;;52186:296;52322:38;52337:9;52348:11;52322:14;:38::i;:::-;52315:45;;;;;;51919:578;52000:45;52022:9;52033:11;52000:21;:45::i;50858:1657::-;;;;;:::o;53621:150::-;53707:11;53738:25;53753:6;53761:1;53738:14;:25::i;52895:308::-;52982:10;;-1:-1:-1;;;;;52982:10:0;52996;52982:24;52978:177;;53073:9;-1:-1:-1;;;;;53063:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;53049:47:0;:10;-1:-1:-1;;;;;53049:47:0;;53023:120;;;;-1:-1:-1;;;53023:120:0;;3109:2:1;53023:120:0;;;3091:21:1;3148:2;3128:18;;;3121:30;-1:-1:-1;;;3167:18:1;;;3160:41;3218:18;;53023:120:0;;;;;;;;;-1:-1:-1;;;;;53167:18:0;;;;;;;:7;:18;;;;;:28;;-1:-1:-1;;;;;;53167:28:0;;;;;;;;52895:308::o;54451:1010::-;54560:11;54584:12;54606:6;54584:29;;54726:15;54694:5;-1:-1:-1;;;;;54694:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;54690:61;;54750:1;54743:8;;;;;54690:61;54823:14;54878:6;54855:5;-1:-1:-1;;;;;54855:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54848:36;;;;:::i;:::-;54823:62;;54945:6;54955:1;54945:11;54941:25;;54965:1;54958:8;;;;;;54941:25;55133:26;55162:5;-1:-1:-1;;;;;55162:21:0;;55198:5;-1:-1:-1;;;;;55198:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55162:74;;;;;;;;;;;;;615:25:1;;603:2;588:18;;469:177;55162:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55133:103;-1:-1:-1;55447:6:0;49946:17;50015:10;55354:25;55133:103;55354:4;:25;:::i;:::-;:44;;;;:::i;:::-;55353:78;;;;:::i;:::-;:100;;;;:::i;:::-;55334:119;54451:1010;-1:-1:-1;;;;;;54451:1010:0:o;55754:1528::-;55870:7;55890:27;55927:6;-1:-1:-1;;;;;55920:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55920:34:0;;;;;;;;;;;;:::i;:::-;55890:64;;55965:19;55994:6;-1:-1:-1;;;;;55987:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55965:50;;56028:16;56064:9;56059:1089;56083:10;:17;56079:1;:21;56059:1089;;;56122:12;56144:6;-1:-1:-1;;;;;56137:43:0;;56181:10;56192:1;56181:13;;;;;;;;:::i;:::-;;;;;;;56137:58;;;;;;;;;;;;;;-1:-1:-1;;;;;1067:32:1;;;;1049:51;;1037:2;1022:18;;903:203;56137:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;56122:104;;56247:4;56255:1;56247:9;56243:23;;56258:8;;;56243:23;56347:12;56361:16;56381:10;56392:1;56381:13;;;;;;;;:::i;:::-;;;;;;;;;;;;56424:112;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56424:112:0;-1:-1:-1;;;56424:112:0;;;56381:170;-1:-1:-1;;;;;56381:24:0;;;;:170;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56346:205;;;;56568:22;56609:7;56605:91;;;56665:3;56654:26;;;;;;;;;;;;:::i;:::-;56637:43;;56605:91;56776:17;56829:11;56797:21;56813:4;56797:6;:21;:::i;:::-;56796:45;;;;:::i;:::-;56776:65;-1:-1:-1;49888:6:0;57083:24;57093:14;49888:6;57083:24;:::i;:::-;57032:25;57047:10;57039:4;57032:25;:::i;:::-;56959:41;56974:10;56985:1;56974:13;;;;;;;;:::i;:::-;;;;;;;56989:10;56959:14;:41::i;:::-;:99;;;;:::i;:::-;:149;;;;:::i;:::-;56958:178;;;;:::i;:::-;56929:207;;;;:::i;:::-;;;56107:1041;;;;;56059:1089;56102:3;;;;:::i;:::-;;;;56059:1089;;;-1:-1:-1;57245:28:0;57267:6;57252:11;57245:28;:::i;:::-;57226:48;;:8;:48;:::i;9714:325::-;9021:18;:16;:18::i;:::-;-1:-1:-1;;;;;9833:28:0;::::1;9825:53;;;::::0;-1:-1:-1;;;9825:53:0;;7268:2:1;9825:53:0::1;::::0;::::1;7250:21:1::0;7307:2;7287:18;;;7280:30;-1:-1:-1;;;7326:18:1;;;7319:42;7378:18;;9825:53:0::1;7066:336:1::0;9825:53:0::1;9889:21;9913:10:::0;;-1:-1:-1;;;;;9934:27:0;;::::1;-1:-1:-1::0;;;;;;9934:27:0;::::1;::::0;::::1;::::0;;9979:52:::1;::::0;9913:10;;;::::1;::::0;;;9979:52:::1;::::0;9889:21;9979:52:::1;9814:225;9714:325:::0;:::o;9128:117::-;9197:10;;-1:-1:-1;;;;;9197:10:0;9211;9197:24;9189:48;;;;-1:-1:-1;;;9189:48:0;;7609:2:1;9189:48:0;;;7591:21:1;7648:2;7628:18;;;7621:30;-1:-1:-1;;;7667:18:1;;;7660:41;7718:18;;9189:48:0;7407:335:1;9189:48:0;9128:117::o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:314::-;217:6;225;278:2;266:9;257:7;253:23;249:32;246:52;;;294:1;291;284:12;246:52;333:9;320:23;352:31;377:5;352:31;:::i;:::-;402:5;454:2;439:18;;;;426:32;;-1:-1:-1;;;150:314:1:o;651:247::-;710:6;763:2;751:9;742:7;738:23;734:32;731:52;;;779:1;776;769:12;731:52;818:9;805:23;837:31;862:5;837:31;:::i;:::-;887:5;651:247;-1:-1:-1;;;651:247:1:o;1111:388::-;1179:6;1187;1240:2;1228:9;1219:7;1215:23;1211:32;1208:52;;;1256:1;1253;1246:12;1208:52;1295:9;1282:23;1314:31;1339:5;1314:31;:::i;:::-;1364:5;-1:-1:-1;1421:2:1;1406:18;;1393:32;1434:33;1393:32;1434:33;:::i;:::-;1486:7;1476:17;;;1111:388;;;;;:::o;1504:412::-;1633:3;1671:6;1665:13;1696:1;1706:129;1720:6;1717:1;1714:13;1706:129;;;1818:4;1802:14;;;1798:25;;1792:32;1779:11;;;1772:53;1735:12;1706:129;;;-1:-1:-1;1890:1:1;1854:16;;1879:13;;;-1:-1:-1;1854:16:1;1504:412;-1:-1:-1;1504:412:1:o;1921:259::-;1999:6;2052:2;2040:9;2031:7;2027:23;2023:32;2020:52;;;2068:1;2065;2058:12;2020:52;2100:9;2094:16;2119:31;2144:5;2119:31;:::i;2462:184::-;2532:6;2585:2;2573:9;2564:7;2560:23;2556:32;2553:52;;;2601:1;2598;2591:12;2553:52;-1:-1:-1;2624:16:1;;2462:184;-1:-1:-1;2462:184:1:o;3247:127::-;3308:10;3303:3;3299:20;3296:1;3289:31;3339:4;3336:1;3329:15;3363:4;3360:1;3353:15;3379:216;3443:9;;;3471:11;;;3418:3;3501:9;;3529:10;;3525:19;;3554:10;;3546:19;;3522:44;3519:70;;;3569:18;;:::i;:::-;3519:70;;3379:216;;;;:::o;3600:168::-;3673:9;;;3704;;3721:15;;;3715:22;;3701:37;3691:71;;3742:18;;:::i;3773:127::-;3834:10;3829:3;3825:20;3822:1;3815:31;3865:4;3862:1;3855:15;3889:4;3886:1;3879:15;3905:120;3945:1;3971;3961:35;;3976:18;;:::i;:::-;-1:-1:-1;4010:9:1;;3905:120::o;4030:127::-;4091:10;4086:3;4082:20;4079:1;4072:31;4122:4;4119:1;4112:15;4146:4;4143:1;4136:15;4162:275;4233:2;4227:9;4298:2;4279:13;;-1:-1:-1;;4275:27:1;4263:40;;4333:18;4318:34;;4354:22;;;4315:62;4312:88;;;4380:18;;:::i;:::-;4416:2;4409:22;4162:275;;-1:-1:-1;4162:275:1:o;4442:1011::-;4537:6;4568:2;4611;4599:9;4590:7;4586:23;4582:32;4579:52;;;4627:1;4624;4617:12;4579:52;4660:9;4654:16;4689:18;4730:2;4722:6;4719:14;4716:34;;;4746:1;4743;4736:12;4716:34;4784:6;4773:9;4769:22;4759:32;;4829:7;4822:4;4818:2;4814:13;4810:27;4800:55;;4851:1;4848;4841:12;4800:55;4880:2;4874:9;4902:2;4898;4895:10;4892:36;;;4908:18;;:::i;:::-;4954:2;4951:1;4947:10;4937:20;;4977:28;5001:2;4997;4993:11;4977:28;:::i;:::-;5039:15;;;5109:11;;;5105:20;;;5070:12;;;;5137:19;;;5134:39;;;5169:1;5166;5159:12;5134:39;5193:11;;;;5213:210;5229:6;5224:3;5221:15;5213:210;;;5302:3;5296:10;5283:23;;5319:31;5344:5;5319:31;:::i;:::-;5363:18;;;5246:12;;;;5401;;;;5213:210;;;5442:5;4442:1011;-1:-1:-1;;;;;;;;4442:1011:1:o;5458:127::-;5519:10;5514:3;5510:20;5507:1;5500:31;5550:4;5547:1;5540:15;5574:4;5571:1;5564:15;5590:628;5692:6;5745:3;5733:9;5724:7;5720:23;5716:33;5713:53;;;5762:1;5759;5752:12;5713:53;5795:2;5789:9;5837:3;5829:6;5825:16;5907:6;5895:10;5892:22;5871:18;5859:10;5856:34;5853:62;5850:88;;;5918:18;;:::i;:::-;5958:10;5954:2;5947:22;;5999:9;5993:16;5985:6;5978:32;6064:2;6053:9;6049:18;6043:25;6038:2;6030:6;6026:15;6019:50;6123:2;6112:9;6108:18;6102:25;6097:2;6089:6;6085:15;6078:50;6182:2;6171:9;6167:18;6161:25;6156:2;6148:6;6144:15;6137:50;6206:6;6196:16;;;5590:628;;;;:::o;6223:237::-;6295:9;;;6262:7;6320:9;;-1:-1:-1;;;6331:18:1;;6316:34;6313:60;;;6353:18;;:::i;:::-;6426:1;6417:7;6412:16;6409:1;6406:23;6402:1;6395:9;6392:38;6382:72;;6434:18;;:::i;6465:193::-;6504:1;6530;6520:35;;6535:18;;:::i;:::-;-1:-1:-1;;;6571:18:1;;-1:-1:-1;;6591:13:1;;6567:38;6564:64;;;6608:18;;:::i;:::-;-1:-1:-1;6642:10:1;;6465:193::o;6663:128::-;6730:9;;;6751:11;;;6748:37;;;6765:18;;:::i;6796:125::-;6861:9;;;6882:10;;;6879:36;;;6895:18;;:::i;6926:135::-;6965:3;6986:17;;;6983:43;;7006:18;;:::i;:::-;-1:-1:-1;7053:1:1;7042:13;;6926:135::o
Swarm Source
ipfs://da0e1e7a6d6e86633ccca28d34ec5b1b829001ad625792f115c77420454b0466
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.