Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VaultEPT
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 8000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-04-10 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.8.4; // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @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); }// 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); }// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) /** * @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); } } } } /** * @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"); } } }// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !Address.isContract(address(this)); } }// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol) /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } } interface ICodex { function init(address vault) external; function setParam(bytes32 param, uint256 data) external; function setParam( address, bytes32, uint256 ) external; function credit(address) external view returns (uint256); function unbackedDebt(address) external view returns (uint256); function balances( address, uint256, address ) external view returns (uint256); function vaults(address vault) external view returns ( uint256 totalNormalDebt, uint256 rate, uint256 debtCeiling, uint256 debtFloor ); function positions( address vault, uint256 tokenId, address position ) external view returns (uint256 collateral, uint256 normalDebt); function globalDebt() external view returns (uint256); function globalUnbackedDebt() external view returns (uint256); function globalDebtCeiling() external view returns (uint256); function delegates(address, address) external view returns (uint256); function grantDelegate(address) external; function revokeDelegate(address) external; function modifyBalance( address, uint256, address, int256 ) external; function transferBalance( address vault, uint256 tokenId, address src, address dst, uint256 amount ) external; function transferCredit( address src, address dst, uint256 amount ) external; function modifyCollateralAndDebt( address vault, uint256 tokenId, address user, address collateralizer, address debtor, int256 deltaCollateral, int256 deltaNormalDebt ) external; function transferCollateralAndDebt( address vault, uint256 tokenId, address src, address dst, int256 deltaCollateral, int256 deltaNormalDebt ) external; function confiscateCollateralAndDebt( address vault, uint256 tokenId, address user, address collateralizer, address debtor, int256 deltaCollateral, int256 deltaNormalDebt ) external; function settleUnbackedDebt(uint256 debt) external; function createUnbackedDebt( address debtor, address creditor, uint256 debt ) external; function modifyRate( address vault, address creditor, int256 rate ) external; function lock() external; } interface IPriceFeed { function peek() external returns (bytes32, bool); function read() external view returns (bytes32); } interface ICollybus { function vaults(address) external view returns (uint128, uint128); function spots(address) external view returns (uint256); function rates(uint256) external view returns (uint256); function rateIds(address, uint256) external view returns (uint256); function redemptionPrice() external view returns (uint256); function live() external view returns (uint256); function setParam(bytes32 param, uint256 data) external; function setParam( address vault, bytes32 param, uint128 data ) external; function setParam( address vault, uint256 tokenId, bytes32 param, uint256 data ) external; function updateDiscountRate(uint256 rateId, uint256 rate) external; function updateSpot(address token, uint256 spot) external; function read( address vault, address underlier, uint256 tokenId, uint256 maturity, bool net ) external view returns (uint256 price); function lock() external; }interface IGuarded { function ANY_SIG() external view returns (bytes32); function ANY_CALLER() external view returns (address); function allowCaller(bytes32 sig, address who) external; function blockCaller(bytes32 sig, address who) external; function canCall(bytes32 sig, address who) external view returns (bool); } /// @title Guarded /// @notice Mixin implementing an authentication scheme on a method level abstract contract Guarded is IGuarded { /// ======== Custom Errors ======== /// error Guarded__notRoot(); error Guarded__notGranted(); /// ======== Storage ======== /// /// @notice Wildcard for granting a caller to call every guarded method bytes32 public constant override ANY_SIG = keccak256("ANY_SIG"); /// @notice Wildcard for granting a caller to call every guarded method address public constant override ANY_CALLER = address(uint160(uint256(bytes32(keccak256("ANY_CALLER"))))); /// @notice Mapping storing who is granted to which method /// @dev Method Signature => Caller => Bool mapping(bytes32 => mapping(address => bool)) private _canCall; /// ======== Events ======== /// event AllowCaller(bytes32 sig, address who); event BlockCaller(bytes32 sig, address who); constructor() { // set root _setRoot(msg.sender); } /// ======== Auth ======== /// modifier callerIsRoot() { if (_canCall[ANY_SIG][msg.sender]) { _; } else revert Guarded__notRoot(); } modifier checkCaller() { if (canCall(msg.sig, msg.sender)) { _; } else revert Guarded__notGranted(); } /// @notice Grant the right to call method `sig` to `who` /// @dev Only the root user (granted `ANY_SIG`) is able to call this method /// @param sig Method signature (4Byte) /// @param who Address of who should be able to call `sig` function allowCaller(bytes32 sig, address who) public override callerIsRoot { _canCall[sig][who] = true; emit AllowCaller(sig, who); } /// @notice Revoke the right to call method `sig` from `who` /// @dev Only the root user (granted `ANY_SIG`) is able to call this method /// @param sig Method signature (4Byte) /// @param who Address of who should not be able to call `sig` anymore function blockCaller(bytes32 sig, address who) public override callerIsRoot { _canCall[sig][who] = false; emit BlockCaller(sig, who); } /// @notice Returns if `who` can call `sig` /// @param sig Method signature (4Byte) /// @param who Address of who should be able to call `sig` function canCall(bytes32 sig, address who) public view override returns (bool) { return (_canCall[sig][who] || _canCall[ANY_SIG][who] || _canCall[sig][ANY_CALLER]); } /// @notice Sets the root user (granted `ANY_SIG`) /// @param root Address of who should be set as root function _setRoot(address root) internal { _canCall[ANY_SIG][root] = true; emit AllowCaller(ANY_SIG, root); } /// @notice Unsets the root user (granted `ANY_SIG`) /// @param root Address of who should be unset as root function _unsetRoot(address root) internal { _canCall[ANY_SIG][root] = false; emit AllowCaller(ANY_SIG, root); } }// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC. uint256 constant MLN = 10**6; uint256 constant BLN = 10**9; uint256 constant WAD = 10**18; uint256 constant RAY = 10**18; uint256 constant RAD = 10**18; /* solhint-disable func-visibility, no-inline-assembly */ error Math__toInt256_overflow(uint256 x); function toInt256(uint256 x) pure returns (int256) { if (x > uint256(type(int256).max)) revert Math__toInt256_overflow(x); return int256(x); } function min(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { z = x <= y ? x : y; } } function max(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { z = x >= y ? x : y; } } error Math__diff_overflow(uint256 x, uint256 y); function diff(uint256 x, uint256 y) pure returns (int256 z) { unchecked { z = int256(x) - int256(y); if (!(int256(x) >= 0 && int256(y) >= 0)) revert Math__diff_overflow(x, y); } } error Math__add_overflow(uint256 x, uint256 y); function add(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { if ((z = x + y) < x) revert Math__add_overflow(x, y); } } error Math__add48_overflow(uint256 x, uint256 y); function add48(uint48 x, uint48 y) pure returns (uint48 z) { unchecked { if ((z = x + y) < x) revert Math__add48_overflow(x, y); } } error Math__add_overflow_signed(uint256 x, int256 y); function add(uint256 x, int256 y) pure returns (uint256 z) { unchecked { z = x + uint256(y); if (!(y >= 0 || z <= x)) revert Math__add_overflow_signed(x, y); if (!(y <= 0 || z >= x)) revert Math__add_overflow_signed(x, y); } } error Math__sub_overflow(uint256 x, uint256 y); function sub(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { if ((z = x - y) > x) revert Math__sub_overflow(x, y); } } error Math__sub_overflow_signed(uint256 x, int256 y); function sub(uint256 x, int256 y) pure returns (uint256 z) { unchecked { z = x - uint256(y); if (!(y <= 0 || z <= x)) revert Math__sub_overflow_signed(x, y); if (!(y >= 0 || z >= x)) revert Math__sub_overflow_signed(x, y); } } error Math__mul_overflow(uint256 x, uint256 y); function mul(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { if (!(y == 0 || (z = x * y) / y == x)) revert Math__mul_overflow(x, y); } } error Math__mul_overflow_signed(uint256 x, int256 y); function mul(uint256 x, int256 y) pure returns (int256 z) { unchecked { z = int256(x) * y; if (int256(x) < 0) revert Math__mul_overflow_signed(x, y); if (!(y == 0 || z / y == int256(x))) revert Math__mul_overflow_signed(x, y); } } function wmul(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { z = mul(x, y) / WAD; } } function wmul(uint256 x, int256 y) pure returns (int256 z) { unchecked { z = mul(x, y) / int256(WAD); } } error Math__div_overflow(uint256 x, uint256 y); function div(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { if (y == 0) revert Math__div_overflow(x, y); return x / y; } } function wdiv(uint256 x, uint256 y) pure returns (uint256 z) { unchecked { z = mul(x, WAD) / y; } } // optimized version from dss PR #78 function wpow( uint256 x, uint256 n, uint256 b ) pure returns (uint256 z) { unchecked { assembly { switch n case 0 { z := b } default { switch x case 0 { z := 0 } default { switch mod(n, 2) case 0 { z := b } default { z := x } let half := div(b, 2) // for rounding. for { n := div(n, 2) } n { n := div(n, 2) } { let xx := mul(x, x) if shr(128, x) { revert(0, 0) } let xxRound := add(xx, half) if lt(xxRound, xx) { revert(0, 0) } x := div(xxRound, b) if mod(n, 2) { let zx := mul(z, x) if and(iszero(iszero(x)), iszero(eq(div(zx, x), z))) { revert(0, 0) } let zxRound := add(zx, half) if lt(zxRound, zx) { revert(0, 0) } z := div(zxRound, b) } } } } } } } /* solhint-disable func-visibility, no-inline-assembly */ interface IVault { function codex() external view returns (ICodex); function collybus() external view returns (ICollybus); function token() external view returns (address); function tokenScale() external view returns (uint256); function underlierToken() external view returns (address); function underlierScale() external view returns (uint256); function vaultType() external view returns (bytes32); function live() external view returns (uint256); function lock() external; function setParam(bytes32 param, address data) external; function maturity(uint256 tokenId) external returns (uint256); function fairPrice( uint256 tokenId, bool net, bool face ) external view returns (uint256); function enter( uint256 tokenId, address user, uint256 amount ) external; function exit( uint256 tokenId, address user, uint256 amount ) external; } interface IVaultEPT is IVault { function wrappedPosition() external view returns (address); function trancheFactory() external view returns (address); }interface IVaultInitializable { function initialize(bytes calldata params) external; } /// @title VaultFactory /// @notice Instantiates proxy vault contracts contract VaultFactory is Guarded { event VaultCreated(address indexed instance, address indexed creator, bytes params); function createVault(address impl, bytes calldata params) external checkCaller returns (address) { address instance = Clones.clone(impl); // append msg.sender to set the root IVaultInitializable(instance).initialize(abi.encodePacked(params, abi.encode(msg.sender))); emit VaultCreated(instance, msg.sender, params); return instance; } } interface ITrancheFactory { function TRANCHE_CREATION_HASH() external view returns (bytes32); } interface ITranche { function unlockTimestamp() external view returns (uint256); } interface IWrappedPosition { function token() external view returns (address); } /// @title VaultEPT (Element Finance Principal Token Vault) /// @notice Collateral adapter for Element Finance Principal Tokens /// @dev To be instantiated by the VaultFactory contract VaultEPT is Guarded, IVaultEPT, Initializable { using SafeERC20 for IERC20; /// ======== Custom Errors ======== /// error VaultEPT__setParam_notLive(); error VaultEPT__setParam_unrecognizedParam(); error VaultEPT__enter_notLive(); error VaultEPT__initialize_invalidToken(); /// ======== Storage ======== /// /// @notice Codex ICodex public immutable override codex; /// @notice Price Feed (set during intialization) ICollybus public override collybus; /// @notice Element Finance WrappedPosition address public immutable wrappedPosition; /// @notice Element TrancheFactory address public immutable trancheFactory; /// @notice Collateral token (set during intialization) address public override token; /// @notice Scale of collateral token (set during intialization) uint256 public override tokenScale; /// @notice Underlier of collateral token address public immutable override underlierToken; /// @notice Scale of underlier of collateral token uint256 public immutable override underlierScale; /// @notice The vault type (set during intialization) bytes32 public immutable override vaultType; // @notice Cached maturity of pToken (set during intialization) uint256 internal _maturity; /// @notice Boolean indicating if this contract is live (0 - not live, 1 - live) (set during intialization) uint256 public override live; /// ======== Events ======== /// event SetParam(bytes32 indexed param, address data); event Enter(address indexed user, uint256 amount); event Exit(address indexed user, uint256 amount); event Lock(); constructor( address codex_, address wrappedPosition_, address trancheFactory_ ) Guarded() { // disable deposits until proxy contract is initialized codex = ICodex(codex_); wrappedPosition = wrappedPosition_; trancheFactory = trancheFactory_; // underlier remains the same for all proxy instances of this contract address underlierToken_ = IWrappedPosition(wrappedPosition_).token(); underlierToken = underlierToken_; underlierScale = 10**IERC20Metadata(underlierToken_).decimals(); vaultType = bytes32("ERC20:EPT"); } /// ======== EIP1167 Minimal Proxy Contract ======== /// /// @notice Initializes the proxy (clone) deployed via VaultFactory /// @dev Initializer modifier ensures it can only be called once /// @param params Constructor arguments of the proxy function initialize(bytes calldata params) external initializer { (address pToken, address collybus_, address root) = abi.decode(params, (address, address, address)); uint256 _maturity_ = ITranche(pToken).unlockTimestamp(); // Validate pToken address // see: https://github.com/element-fi/elf-contracts/blob/main/contracts/factories/TrancheFactory.sol#L58 address predictedAddress = address( uint160( uint256( keccak256( abi.encodePacked( bytes1(0xff), trancheFactory, keccak256(abi.encodePacked(wrappedPosition, _maturity_)), ITrancheFactory(trancheFactory).TRANCHE_CREATION_HASH() ) ) ) ) ); if (predictedAddress != pToken) revert VaultEPT__initialize_invalidToken(); // intialize all mutable vars _setRoot(root); live = 1; collybus = ICollybus(collybus_); token = pToken; tokenScale = 10**IERC20Metadata(pToken).decimals(); _maturity = _maturity_; } /// ======== Configuration ======== /// /// @notice Sets various variables for this contract /// @dev Sender has to be allowed to call this method /// @param param Name of the variable to set /// @param data New value to set for the variable [address] function setParam(bytes32 param, address data) external virtual override checkCaller { if (live == 0) revert VaultEPT__setParam_notLive(); if (param == "collybus") collybus = ICollybus(data); else revert VaultEPT__setParam_unrecognizedParam(); emit SetParam(param, data); } /// ======== Entering and Exiting Collateral ======== /// /// @notice Enters `amount` collateral into the system and credits it to `user` /// @dev Caller has to set allowance for this contract /// @param *tokenId ERC1155 or ERC721 style TokenId (leave at 0 for ERC20) /// @param user Address to whom the collateral should be credited to in Codex /// @param amount Amount of collateral to enter [tokenScale] function enter( uint256, /* tokenId */ address user, uint256 amount ) external virtual override { if (live == 0) revert VaultEPT__enter_notLive(); int256 wad = toInt256(wdiv(amount, tokenScale)); codex.modifyBalance(address(this), 0, user, wad); IERC20(token).safeTransferFrom(msg.sender, address(this), amount); emit Enter(user, amount); } /// @notice Exits `amount` collateral into the system and credits it to `user` /// @param *tokenId ERC1155 or ERC721 style TokenId (leave at 0 for ERC20) /// @param user Address to whom the collateral should be credited to /// @param amount Amount of collateral to exit [tokenScale] function exit( uint256, /* tokenId */ address user, uint256 amount ) external virtual override { int256 wad = toInt256(wdiv(amount, tokenScale)); codex.modifyBalance(address(this), 0, msg.sender, -int256(wad)); IERC20(token).safeTransfer(user, amount); emit Exit(user, amount); } /// ======== Collateral Asset ======== /// /// @notice Returns the maturity of the collateral asset /// @param *tokenId ERC1155 or ERC721 style TokenId (leave at 0 for ERC20) /// @return maturity [seconds] function maturity( uint256 /* tokenId */ ) external view virtual override returns (uint256) { return _maturity; } /// ======== Valuing Collateral ======== /// /// @notice Returns the fair price of a single collateral unit /// @dev Caller has to set allowance for this contract /// @param *tokenId ERC1155 or ERC721 style TokenId (leave at 0 for ERC20) /// @param net Boolean indicating whether the liquidation safety margin should be applied to the fair value /// @param face Boolean indicating whether the current fair value or the fair value at maturity should be returned /// @return fair Price [wad] function fairPrice( uint256, bool net, bool face ) external view override returns (uint256) { return ICollybus(collybus).read(address(this), underlierToken, 0, (face) ? block.timestamp : _maturity, net); } /// ======== Shutdown ======== /// /// @notice Locks the contract /// @dev Sender has to be allowed to call this method function lock() external virtual override checkCaller { live = 0; emit Lock(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"codex_","type":"address"},{"internalType":"address","name":"wrappedPosition_","type":"address"},{"internalType":"address","name":"trancheFactory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Guarded__notGranted","type":"error"},{"inputs":[],"name":"Guarded__notRoot","type":"error"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"}],"name":"Math__mul_overflow","type":"error"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"Math__toInt256_overflow","type":"error"},{"inputs":[],"name":"VaultEPT__enter_notLive","type":"error"},{"inputs":[],"name":"VaultEPT__initialize_invalidToken","type":"error"},{"inputs":[],"name":"VaultEPT__setParam_notLive","type":"error"},{"inputs":[],"name":"VaultEPT__setParam_unrecognizedParam","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"sig","type":"bytes32"},{"indexed":false,"internalType":"address","name":"who","type":"address"}],"name":"AllowCaller","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"sig","type":"bytes32"},{"indexed":false,"internalType":"address","name":"who","type":"address"}],"name":"BlockCaller","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Enter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Exit","type":"event"},{"anonymous":false,"inputs":[],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"param","type":"bytes32"},{"indexed":false,"internalType":"address","name":"data","type":"address"}],"name":"SetParam","type":"event"},{"inputs":[],"name":"ANY_CALLER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ANY_SIG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sig","type":"bytes32"},{"internalType":"address","name":"who","type":"address"}],"name":"allowCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sig","type":"bytes32"},{"internalType":"address","name":"who","type":"address"}],"name":"blockCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sig","type":"bytes32"},{"internalType":"address","name":"who","type":"address"}],"name":"canCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"codex","outputs":[{"internalType":"contract ICodex","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collybus","outputs":[{"internalType":"contract ICollybus","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"net","type":"bool"},{"internalType":"bool","name":"face","type":"bool"}],"name":"fairPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"params","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maturity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"param","type":"bytes32"},{"internalType":"address","name":"data","type":"address"}],"name":"setParam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenScale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trancheFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlierScale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlierToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultType","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wrappedPosition","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101406040523480156200001257600080fd5b5060405162001fbe38038062001fbe83398101604081905262000035916200022c565b62000040336200016f565b6001600160a01b0380841660805282811660a081905290821660c05260408051637e062a3560e11b815290516000929163fc0c546a9160048083019260209291908290030181865afa1580156200009b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000c1919062000276565b9050806001600160a01b031660e0816001600160a01b031681525050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200011c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014291906200029b565b6200014f90600a620003d5565b61010052505068115490cc8c0e91541560ba1b6101205250620003e69050565b6001600160a01b03811660008181527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b29006020908152604091829020805460ff1916600117905581517f13eb61d6467453b8d8e0d2a40b8dcee776dde376f951013dfdab1b9189651b618152908101929092527f9c21fb13a2f9c0e9222fe9a6810fe483b60248132981e1e0554bae602e93a9dd910160405180910390a150565b80516001600160a01b03811681146200022757600080fd5b919050565b6000806000606084860312156200024257600080fd5b6200024d846200020f565b92506200025d602085016200020f565b91506200026d604085016200020f565b90509250925092565b6000602082840312156200028957600080fd5b62000294826200020f565b9392505050565b600060208284031215620002ae57600080fd5b815160ff811681146200029457600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000317578160001904821115620002fb57620002fb620002c0565b808516156200030957918102915b93841c9390800290620002db565b509250929050565b6000826200033057506001620003cf565b816200033f57506000620003cf565b8160018114620003585760028114620003635762000383565b6001915050620003cf565b60ff841115620003775762000377620002c0565b50506001821b620003cf565b5060208310610133831016604e8410600b8410161715620003a8575081810a620003cf565b620003b48383620002d6565b8060001904821115620003cb57620003cb620002c0565b0290505b92915050565b60006200029460ff8416836200031f565b60805160a05160c05160e0516101005161012051611b5e620004606000396000610256015260006102b50152600081816102dc015261053b01526000818161030c01528181610811015261084c01526000818161039301526107b80152600081816101f701528181610cbd0152610ea80152611b5e6000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063957aa58c116100d8578063d15d2e431161008c578063edd1b0be11610066578063edd1b0be146103db578063f83d08ba146103ee578063fc0c546a146103f657600080fd5b8063d15d2e431461037b578063d21f00e31461038e578063e88c2f83146103b557600080fd5b8063a746d489116100bd578063a746d4891461032e578063ad89498214610341578063bbd91c461461035457600080fd5b8063957aa58c146102fe5780639ee2addd1461030757600080fd5b8063439fab911161013a578063644bd01011610114578063644bd0101461029b57806369a0125f146102b05780636db64e63146102d757600080fd5b8063439fab911461023e5780634ac032be1461025157806352b43adf1461027857600080fd5b80632936ff2b1161016b5780632936ff2b146101c2578063342c02b1146101e957806341779f86146101f257600080fd5b8063012abbe91461018757806306edbf771461019c575b600080fd5b61019a6101953660046116ee565b610416565b005b6101af6101aa36600461172c565b610511565b6040519081526020015b60405180910390f35b6101af7f13eb61d6467453b8d8e0d2a40b8dcee776dde376f951013dfdab1b9189651b6181565b6101af60035481565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b9565b61019a61024c36600461176e565b61061c565b6101af7f000000000000000000000000000000000000000000000000000000000000000081565b61028b6102863660046116ee565b610b0b565b60405190151581526020016101b9565b6101af6102a93660046117e0565b5060045490565b6101af7f000000000000000000000000000000000000000000000000000000000000000081565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b6101af60055481565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b61019a61033c3660046116ee565b610bca565b61019a61034f3660046117f9565b610c8e565b6102197f48a48edb17b6277f3d9897feeb510d1503580c3997a055cb5a635e86f81c243a81565b61019a6103893660046117f9565b610dff565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b6001546102199062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b61019a6103e93660046116ee565b610f74565b61019a611107565b6002546102199073ffffffffffffffffffffffffffffffffffffffff1681565b3360009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff16156104df5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690558051858152918201929092527faec761575684e54a883064093131de012d7a9e8fc898f13474e50fcfbdce7d0b91015b60405180910390a15050565b6040517f6d6b83b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460009062010000900473ffffffffffffffffffffffffffffffffffffffff1663bd8edf6d307f000000000000000000000000000000000000000000000000000000000000000084866105685760045461056a565b425b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff948516600482015293909216602484015260448301526064820152851515608482015260a401602060405180830381865afa1580156105ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106129190611831565b90505b9392505050565b600154610100900460ff166106375760015460ff161561063b565b303b155b6106cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600154610100900460ff1615801561070b57600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6000808061071b8587018761184a565b92509250925060008373ffffffffffffffffffffffffffffffffffffffff1663aa082a9d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561076e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611831565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000060601b166020820152603481018290529091506000907fff00000000000000000000000000000000000000000000000000000000000000907f000000000000000000000000000000000000000000000000000000000000000090605401604051602081830303815290604052805190602001207f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631af3f3176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d99190611831565b6040517fff0000000000000000000000000000000000000000000000000000000000000094909416602085015260609290921b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166021840152603583015260558201526075016040516020818303038152906040528051906020012060001c90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109c0576040517f6d1b75f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109c98361116a565b60016005819055805473ffffffffffffffffffffffffffffffffffffffff80871662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff90921691909117909155600280549187167fffffffffffffffffffffffff000000000000000000000000000000000000000090921682179055604080517f313ce567000000000000000000000000000000000000000000000000000000008152905163313ce567916004818101926020929091908290030181865afa158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac1919061188a565b610acc90600a6119fc565b60035550600455505081159050610b0657600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff1680610b8b575073ffffffffffffffffffffffffffffffffffffffff821660009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff165b80610bc1575060008381526020818152604080832073eb510d1503580c3997a055cb5a635e86f81c243a845290915290205460ff165b90505b92915050565b3360009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff16156104df5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558051858152918201929092527f9c21fb13a2f9c0e9222fe9a6810fe483b60248132981e1e0554bae602e93a9dd91016104d3565b6000610ca4610c9f83600354611235565b61125f565b905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166383797bfc30600033610cef86611a0b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff94851660048201526024810193909352921660448201526064810191909152608401600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b5050600254610da9925073ffffffffffffffffffffffffffffffffffffffff16905084846112c2565b8273ffffffffffffffffffffffffffffffffffffffff167f22d324652c93739755cf4581508b60875ebdd78c20c0cff5cf8e23452b29963183604051610df191815260200190565b60405180910390a250505050565b600554600003610e3b576040517fc6c4f8de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610e4c610c9f83600354611235565b6040517f83797bfc0000000000000000000000000000000000000000000000000000000081523060048201526000602482015273ffffffffffffffffffffffffffffffffffffffff8581166044830152606482018390529192507f0000000000000000000000000000000000000000000000000000000000000000909116906383797bfc90608401600060405180830381600087803b158015610eee57600080fd5b505af1158015610f02573d6000803e3d6000fd5b5050600254610f2c925073ffffffffffffffffffffffffffffffffffffffff169050333085611396565b8273ffffffffffffffffffffffffffffffffffffffff167f1fb48929215fc354244acea33112720ce5b7ba6912db70bb0149e77aa7c91ce183604051610df191815260200190565b610fa27fffffffff000000000000000000000000000000000000000000000000000000006000351633610b0b565b156110d557600554600003610fe3576040517f1f3967bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b817f636f6c6c796275730000000000000000000000000000000000000000000000000361105457600180547fffffffffffffffffffff0000000000000000000000000000000000000000ffff166201000073ffffffffffffffffffffffffffffffffffffffff841602179055611086565b6040517f1ec09f6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff8216815282907fd473402183a624b7a23eb21bfd0a2863a628f61fb004edd801a2eab61ac2bd3d9060200160405180910390a25050565b6040517faa68b5bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111357fffffffff000000000000000000000000000000000000000000000000000000006000351633610b0b565b156110d557600060058190556040517f46620e39f4e119bf05f13544f8ef38338fc06c17f6b731c7f95bee356572db969190a1565b73ffffffffffffffffffffffffffffffffffffffff811660008181527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905581517f13eb61d6467453b8d8e0d2a40b8dcee776dde376f951013dfdab1b9189651b618152908101929092527f9c21fb13a2f9c0e9222fe9a6810fe483b60248132981e1e0554bae602e93a9dd910160405180910390a150565b60008161124a84670de0b6b3a76400006113fa565b8161125757611257611a43565b049392505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156112be576040517ff8c3425d000000000000000000000000000000000000000000000000000000008152600481018390526024016106c3565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610b069084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261145b565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526113f49085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611314565b50505050565b600081158061141b5750508082028282828161141857611418611a43565b04145b610bc4576040517fa3b82a4100000000000000000000000000000000000000000000000000000000815260048101849052602481018390526044016106c3565b60006114bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115679092919063ffffffff16565b805190915015610b0657808060200190518101906114db9190611a72565b610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016106c3565b606061061284846000858573ffffffffffffffffffffffffffffffffffffffff85163b6115f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106c3565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116199190611abb565b60006040518083038185875af1925050503d8060008114611656576040519150601f19603f3d011682016040523d82523d6000602084013e61165b565b606091505b509150915061166b828286611676565b979650505050505050565b60608315611685575081610615565b8251156116955782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c39190611ad7565b73ffffffffffffffffffffffffffffffffffffffff811681146116eb57600080fd5b50565b6000806040838503121561170157600080fd5b823591506020830135611713816116c9565b809150509250929050565b80151581146116eb57600080fd5b60008060006060848603121561174157600080fd5b8335925060208401356117538161171e565b915060408401356117638161171e565b809150509250925092565b6000806020838503121561178157600080fd5b823567ffffffffffffffff8082111561179957600080fd5b818501915085601f8301126117ad57600080fd5b8135818111156117bc57600080fd5b8660208285010111156117ce57600080fd5b60209290920196919550909350505050565b6000602082840312156117f257600080fd5b5035919050565b60008060006060848603121561180e57600080fd5b833592506020840135611820816116c9565b929592945050506040919091013590565b60006020828403121561184357600080fd5b5051919050565b60008060006060848603121561185f57600080fd5b833561186a816116c9565b9250602084013561187a816116c9565b91506040840135611763816116c9565b60006020828403121561189c57600080fd5b815160ff8116811461061557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600181815b8085111561193557817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561191b5761191b6118ad565b8085161561192857918102915b93841c93908002906118e1565b509250929050565b60008261194c57506001610bc4565b8161195957506000610bc4565b816001811461196f576002811461197957611995565b6001915050610bc4565b60ff84111561198a5761198a6118ad565b50506001821b610bc4565b5060208310610133831016604e8410600b84101617156119b8575081810a610bc4565b6119c283836118dc565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156119f4576119f46118ad565b029392505050565b6000610bc160ff84168361193d565b60007f80000000000000000000000000000000000000000000000000000000000000008203611a3c57611a3c6118ad565b5060000390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060208284031215611a8457600080fd5b81516106158161171e565b60005b83811015611aaa578181015183820152602001611a92565b838111156113f45750506000910152565b60008251611acd818460208701611a8f565b9190910192915050565b6020815260008251806020840152611af6816040850160208701611a8f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122088303c6702a21232c091df5cd8c088fdd1061181bbf6cb2e6e284bc7ccddea7d64736f6c634300080d00330000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f900000000000000000000000062d9855c399fde8226840ea12d9f1dd693a49b6a00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063957aa58c116100d8578063d15d2e431161008c578063edd1b0be11610066578063edd1b0be146103db578063f83d08ba146103ee578063fc0c546a146103f657600080fd5b8063d15d2e431461037b578063d21f00e31461038e578063e88c2f83146103b557600080fd5b8063a746d489116100bd578063a746d4891461032e578063ad89498214610341578063bbd91c461461035457600080fd5b8063957aa58c146102fe5780639ee2addd1461030757600080fd5b8063439fab911161013a578063644bd01011610114578063644bd0101461029b57806369a0125f146102b05780636db64e63146102d757600080fd5b8063439fab911461023e5780634ac032be1461025157806352b43adf1461027857600080fd5b80632936ff2b1161016b5780632936ff2b146101c2578063342c02b1146101e957806341779f86146101f257600080fd5b8063012abbe91461018757806306edbf771461019c575b600080fd5b61019a6101953660046116ee565b610416565b005b6101af6101aa36600461172c565b610511565b6040519081526020015b60405180910390f35b6101af7f13eb61d6467453b8d8e0d2a40b8dcee776dde376f951013dfdab1b9189651b6181565b6101af60035481565b6102197f0000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f981565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b9565b61019a61024c36600461176e565b61061c565b6101af7f45524332303a455054000000000000000000000000000000000000000000000081565b61028b6102863660046116ee565b610b0b565b60405190151581526020016101b9565b6101af6102a93660046117e0565b5060045490565b6101af7f00000000000000000000000000000000000000000000000000000000000f424081565b6102197f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6101af60055481565b6102197f00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c081565b61019a61033c3660046116ee565b610bca565b61019a61034f3660046117f9565b610c8e565b6102197f48a48edb17b6277f3d9897feeb510d1503580c3997a055cb5a635e86f81c243a81565b61019a6103893660046117f9565b610dff565b6102197f00000000000000000000000062d9855c399fde8226840ea12d9f1dd693a49b6a81565b6001546102199062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b61019a6103e93660046116ee565b610f74565b61019a611107565b6002546102199073ffffffffffffffffffffffffffffffffffffffff1681565b3360009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff16156104df5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690558051858152918201929092527faec761575684e54a883064093131de012d7a9e8fc898f13474e50fcfbdce7d0b91015b60405180910390a15050565b6040517f6d6b83b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460009062010000900473ffffffffffffffffffffffffffffffffffffffff1663bd8edf6d307f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4884866105685760045461056a565b425b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff948516600482015293909216602484015260448301526064820152851515608482015260a401602060405180830381865afa1580156105ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106129190611831565b90505b9392505050565b600154610100900460ff166106375760015460ff161561063b565b303b155b6106cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600154610100900460ff1615801561070b57600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6000808061071b8587018761184a565b92509250925060008373ffffffffffffffffffffffffffffffffffffffff1663aa082a9d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561076e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611831565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000007f00000000000000000000000062d9855c399fde8226840ea12d9f1dd693a49b6a60601b166020820152603481018290529091506000907fff00000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c090605401604051602081830303815290604052805190602001207f00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c073ffffffffffffffffffffffffffffffffffffffff16631af3f3176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d99190611831565b6040517fff0000000000000000000000000000000000000000000000000000000000000094909416602085015260609290921b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166021840152603583015260558201526075016040516020818303038152906040528051906020012060001c90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109c0576040517f6d1b75f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109c98361116a565b60016005819055805473ffffffffffffffffffffffffffffffffffffffff80871662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff90921691909117909155600280549187167fffffffffffffffffffffffff000000000000000000000000000000000000000090921682179055604080517f313ce567000000000000000000000000000000000000000000000000000000008152905163313ce567916004818101926020929091908290030181865afa158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac1919061188a565b610acc90600a6119fc565b60035550600455505081159050610b0657600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff1680610b8b575073ffffffffffffffffffffffffffffffffffffffff821660009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff165b80610bc1575060008381526020818152604080832073eb510d1503580c3997a055cb5a635e86f81c243a845290915290205460ff165b90505b92915050565b3360009081527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602052604090205460ff16156104df5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558051858152918201929092527f9c21fb13a2f9c0e9222fe9a6810fe483b60248132981e1e0554bae602e93a9dd91016104d3565b6000610ca4610c9f83600354611235565b61125f565b905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f9166383797bfc30600033610cef86611a0b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff94851660048201526024810193909352921660448201526064810191909152608401600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b5050600254610da9925073ffffffffffffffffffffffffffffffffffffffff16905084846112c2565b8273ffffffffffffffffffffffffffffffffffffffff167f22d324652c93739755cf4581508b60875ebdd78c20c0cff5cf8e23452b29963183604051610df191815260200190565b60405180910390a250505050565b600554600003610e3b576040517fc6c4f8de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610e4c610c9f83600354611235565b6040517f83797bfc0000000000000000000000000000000000000000000000000000000081523060048201526000602482015273ffffffffffffffffffffffffffffffffffffffff8581166044830152606482018390529192507f0000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f9909116906383797bfc90608401600060405180830381600087803b158015610eee57600080fd5b505af1158015610f02573d6000803e3d6000fd5b5050600254610f2c925073ffffffffffffffffffffffffffffffffffffffff169050333085611396565b8273ffffffffffffffffffffffffffffffffffffffff167f1fb48929215fc354244acea33112720ce5b7ba6912db70bb0149e77aa7c91ce183604051610df191815260200190565b610fa27fffffffff000000000000000000000000000000000000000000000000000000006000351633610b0b565b156110d557600554600003610fe3576040517f1f3967bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b817f636f6c6c796275730000000000000000000000000000000000000000000000000361105457600180547fffffffffffffffffffff0000000000000000000000000000000000000000ffff166201000073ffffffffffffffffffffffffffffffffffffffff841602179055611086565b6040517f1ec09f6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff8216815282907fd473402183a624b7a23eb21bfd0a2863a628f61fb004edd801a2eab61ac2bd3d9060200160405180910390a25050565b6040517faa68b5bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111357fffffffff000000000000000000000000000000000000000000000000000000006000351633610b0b565b156110d557600060058190556040517f46620e39f4e119bf05f13544f8ef38338fc06c17f6b731c7f95bee356572db969190a1565b73ffffffffffffffffffffffffffffffffffffffff811660008181527f107ee6c9edf8142ba51e10023f320f7b6ccd180a42be95ddbc18c0e5425b2900602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905581517f13eb61d6467453b8d8e0d2a40b8dcee776dde376f951013dfdab1b9189651b618152908101929092527f9c21fb13a2f9c0e9222fe9a6810fe483b60248132981e1e0554bae602e93a9dd910160405180910390a150565b60008161124a84670de0b6b3a76400006113fa565b8161125757611257611a43565b049392505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156112be576040517ff8c3425d000000000000000000000000000000000000000000000000000000008152600481018390526024016106c3565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610b069084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261145b565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526113f49085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611314565b50505050565b600081158061141b5750508082028282828161141857611418611a43565b04145b610bc4576040517fa3b82a4100000000000000000000000000000000000000000000000000000000815260048101849052602481018390526044016106c3565b60006114bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115679092919063ffffffff16565b805190915015610b0657808060200190518101906114db9190611a72565b610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016106c3565b606061061284846000858573ffffffffffffffffffffffffffffffffffffffff85163b6115f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106c3565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116199190611abb565b60006040518083038185875af1925050503d8060008114611656576040519150601f19603f3d011682016040523d82523d6000602084013e61165b565b606091505b509150915061166b828286611676565b979650505050505050565b60608315611685575081610615565b8251156116955782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c39190611ad7565b73ffffffffffffffffffffffffffffffffffffffff811681146116eb57600080fd5b50565b6000806040838503121561170157600080fd5b823591506020830135611713816116c9565b809150509250929050565b80151581146116eb57600080fd5b60008060006060848603121561174157600080fd5b8335925060208401356117538161171e565b915060408401356117638161171e565b809150509250925092565b6000806020838503121561178157600080fd5b823567ffffffffffffffff8082111561179957600080fd5b818501915085601f8301126117ad57600080fd5b8135818111156117bc57600080fd5b8660208285010111156117ce57600080fd5b60209290920196919550909350505050565b6000602082840312156117f257600080fd5b5035919050565b60008060006060848603121561180e57600080fd5b833592506020840135611820816116c9565b929592945050506040919091013590565b60006020828403121561184357600080fd5b5051919050565b60008060006060848603121561185f57600080fd5b833561186a816116c9565b9250602084013561187a816116c9565b91506040840135611763816116c9565b60006020828403121561189c57600080fd5b815160ff8116811461061557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600181815b8085111561193557817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561191b5761191b6118ad565b8085161561192857918102915b93841c93908002906118e1565b509250929050565b60008261194c57506001610bc4565b8161195957506000610bc4565b816001811461196f576002811461197957611995565b6001915050610bc4565b60ff84111561198a5761198a6118ad565b50506001821b610bc4565b5060208310610133831016604e8410600b84101617156119b8575081810a610bc4565b6119c283836118dc565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156119f4576119f46118ad565b029392505050565b6000610bc160ff84168361193d565b60007f80000000000000000000000000000000000000000000000000000000000000008203611a3c57611a3c6118ad565b5060000390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060208284031215611a8457600080fd5b81516106158161171e565b60005b83811015611aaa578181015183820152602001611a92565b838111156113f45750506000910152565b60008251611acd818460208701611a8f565b9190910192915050565b6020815260008251806020840152611af6816040850160208701611a8f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122088303c6702a21232c091df5cd8c088fdd1061181bbf6cb2e6e284bc7ccddea7d64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f900000000000000000000000062d9855c399fde8226840ea12d9f1dd693a49b6a00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c0
-----Decoded View---------------
Arg [0] : codex_ (address): 0x6bF5EB06201e4ea7C315b1C23BfE79fAE30541F9
Arg [1] : wrappedPosition_ (address): 0x62d9855c399fDE8226840eA12D9F1Dd693a49B6A
Arg [2] : trancheFactory_ (address): 0x62F161BF3692E4015BefB05A03a94A40f520d1c0
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006bf5eb06201e4ea7c315b1c23bfe79fae30541f9
Arg [1] : 00000000000000000000000062d9855c399fde8226840ea12d9f1dd693a49b6a
Arg [2] : 00000000000000000000000062f161bf3692e4015befb05a03a94a40f520d1c0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.