Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
EthCompoundPCVDeposit
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "./CompoundPCVDepositBase.sol"; import "../../Constants.sol"; interface CEther { function mint() external payable; } /// @title ETH implementation for a Compound PCV Deposit /// @author Fei Protocol contract EthCompoundPCVDeposit is CompoundPCVDepositBase { /// @notice Compound ETH PCV Deposit constructor /// @param _core Fei Core for reference /// @param _cToken Compound cToken to deposit constructor( address _core, address _cToken ) CompoundPCVDepositBase(_core, _cToken) { // require(cToken.isCEther(), "EthCompoundPCVDeposit: Not a CEther"); } receive() external payable {} /// @notice deposit ETH to Compound function deposit() external override whenNotPaused { uint256 amount = address(this).balance; // CEth deposits revert on failure CEther(address(cToken)).mint{value: amount}(); emit Deposit(msg.sender, amount); } function _transferUnderlying(address to, uint256 amount) internal override { Address.sendValue(payable(to), amount); } /// @notice display the related token of the balance reported function balanceReportedIn() public pure override returns (address) { return address(Constants.WETH); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "../PCVDeposit.sol"; import "../../refs/CoreRef.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface CToken { function redeemUnderlying(uint redeemAmount) external returns (uint); function exchangeRateStored() external view returns (uint); function balanceOf(address account) external view returns (uint); function isCToken() external view returns(bool); function isCEther() external view returns(bool); } /// @title base class for a Compound PCV Deposit /// @author Fei Protocol abstract contract CompoundPCVDepositBase is PCVDeposit { CToken public cToken; uint256 private constant EXCHANGE_RATE_SCALE = 1e18; /// @notice Compound PCV Deposit constructor /// @param _core Fei Core for reference /// @param _cToken Compound cToken to deposit constructor( address _core, address _cToken ) CoreRef(_core) { cToken = CToken(_cToken); require(cToken.isCToken(), "CompoundPCVDeposit: Not a cToken"); } /// @notice withdraw tokens from the PCV allocation /// @param amountUnderlying of tokens withdrawn /// @param to the address to send PCV to function withdraw(address to, uint256 amountUnderlying) external override onlyPCVController whenNotPaused { require( cToken.redeemUnderlying(amountUnderlying) == 0, "CompoundPCVDeposit: redeem error" ); _transferUnderlying(to, amountUnderlying); emit Withdrawal(msg.sender, to, amountUnderlying); } /// @notice returns total balance of PCV in the Deposit excluding the FEI /// @dev returns stale values from Compound if the market hasn't been updated function balance() public view override returns (uint256) { uint256 exchangeRate = cToken.exchangeRateStored(); return cToken.balanceOf(address(this)) * exchangeRate / EXCHANGE_RATE_SCALE; } function _transferUnderlying(address to, uint256 amount) internal virtual; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../refs/CoreRef.sol"; import "./IPCVDeposit.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /// @title abstract contract for withdrawing ERC-20 tokens using a PCV Controller /// @author Fei Protocol abstract contract PCVDeposit is IPCVDeposit, CoreRef { using SafeERC20 for IERC20; /// @notice withdraw ERC20 from the contract /// @param token address of the ERC20 to send /// @param to address destination of the ERC20 /// @param amount quantity of ERC20 to send function withdrawERC20( address token, address to, uint256 amount ) public virtual override onlyPCVController { _withdrawERC20(token, to, amount); } function _withdrawERC20( address token, address to, uint256 amount ) internal { IERC20(token).safeTransfer(to, amount); emit WithdrawERC20(msg.sender, token, to, amount); } /// @notice withdraw ETH from the contract /// @param to address to send ETH /// @param amountOut amount of ETH to send function withdrawETH(address payable to, uint256 amountOut) external virtual override onlyPCVController { Address.sendValue(to, amountOut); emit WithdrawETH(msg.sender, to, amountOut); } function balance() public view virtual override returns(uint256); function resistantBalanceAndFei() public view virtual override returns(uint256, uint256) { return (balance(), 0); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./ICoreRef.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /// @title A Reference to Core /// @author Fei Protocol /// @notice defines some modifiers and utilities around interacting with Core abstract contract CoreRef is ICoreRef, Pausable { ICore private _core; /// @notice a role used with a subset of governor permissions for this contract only bytes32 public override CONTRACT_ADMIN_ROLE; /// @notice boolean to check whether or not the contract has been initialized. /// cannot be initialized twice. bool private _initialized; constructor(address coreAddress) { _initialize(coreAddress); } /// @notice CoreRef constructor /// @param coreAddress Fei Core to reference function _initialize(address coreAddress) internal { require(!_initialized, "CoreRef: already initialized"); _initialized = true; _core = ICore(coreAddress); _setContractAdminRole(_core.GOVERN_ROLE()); } modifier ifMinterSelf() { if (_core.isMinter(address(this))) { _; } } modifier onlyMinter() { require(_core.isMinter(msg.sender), "CoreRef: Caller is not a minter"); _; } modifier onlyBurner() { require(_core.isBurner(msg.sender), "CoreRef: Caller is not a burner"); _; } modifier onlyPCVController() { require( _core.isPCVController(msg.sender), "CoreRef: Caller is not a PCV controller" ); _; } modifier onlyGovernorOrAdmin() { require( _core.isGovernor(msg.sender) || isContractAdmin(msg.sender), "CoreRef: Caller is not a governor or contract admin" ); _; } modifier onlyGovernor() { require( _core.isGovernor(msg.sender), "CoreRef: Caller is not a governor" ); _; } modifier onlyGuardianOrGovernor() { require( _core.isGovernor(msg.sender) || _core.isGuardian(msg.sender), "CoreRef: Caller is not a guardian or governor" ); _; } modifier isGovernorOrGuardianOrAdmin() { require( _core.isGovernor(msg.sender) || _core.isGuardian(msg.sender) || isContractAdmin(msg.sender), "CoreRef: Caller is not governor or guardian or admin"); _; } modifier onlyFei() { require(msg.sender == address(fei()), "CoreRef: Caller is not FEI"); _; } /// @notice set new Core reference address /// @param newCore the new core address function setCore(address newCore) external override onlyGovernor { require(newCore != address(0), "CoreRef: zero address"); address oldCore = address(_core); _core = ICore(newCore); emit CoreUpdate(oldCore, newCore); } /// @notice sets a new admin role for this contract function setContractAdminRole(bytes32 newContractAdminRole) external override onlyGovernor { _setContractAdminRole(newContractAdminRole); } /// @notice returns whether a given address has the admin role for this contract function isContractAdmin(address _admin) public view override returns (bool) { return _core.hasRole(CONTRACT_ADMIN_ROLE, _admin); } /// @notice set pausable methods to paused function pause() public override onlyGuardianOrGovernor { _pause(); } /// @notice set pausable methods to unpaused function unpause() public override onlyGuardianOrGovernor { _unpause(); } /// @notice address of the Core contract referenced /// @return ICore implementation address function core() public view override returns (ICore) { return _core; } /// @notice address of the Fei contract referenced by Core /// @return IFei implementation address function fei() public view override returns (IFei) { return _core.fei(); } /// @notice address of the Tribe contract referenced by Core /// @return IERC20 implementation address function tribe() public view override returns (IERC20) { return _core.tribe(); } /// @notice fei balance of contract /// @return fei amount held function feiBalance() public view override returns (uint256) { return fei().balanceOf(address(this)); } /// @notice tribe balance of contract /// @return tribe amount held function tribeBalance() public view override returns (uint256) { return tribe().balanceOf(address(this)); } function _burnFeiHeld() internal { fei().burn(feiBalance()); } function _mintFei(address to, uint256 amount) internal virtual { if (amount != 0) { fei().mint(to, amount); } } function _setContractAdminRole(bytes32 newContractAdminRole) internal { bytes32 oldContractAdminRole = CONTRACT_ADMIN_ROLE; CONTRACT_ADMIN_ROLE = newContractAdminRole; emit ContractAdminRoleUpdate(oldContractAdminRole, newContractAdminRole); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../core/ICore.sol"; /// @title CoreRef interface /// @author Fei Protocol interface ICoreRef { // ----------- Events ----------- event CoreUpdate(address indexed oldCore, address indexed newCore); event ContractAdminRoleUpdate(bytes32 indexed oldContractAdminRole, bytes32 indexed newContractAdminRole); // ----------- Governor only state changing api ----------- function setCore(address newCore) external; function setContractAdminRole(bytes32 newContractAdminRole) external; // ----------- Governor or Guardian only state changing api ----------- function pause() external; function unpause() external; // ----------- Getters ----------- function core() external view returns (ICore); function fei() external view returns (IFei); function tribe() external view returns (IERC20); function feiBalance() external view returns (uint256); function tribeBalance() external view returns (uint256); function CONTRACT_ADMIN_ROLE() external view returns (bytes32); function isContractAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./IPermissions.sol"; import "../fei/IFei.sol"; /// @title Core Interface /// @author Fei Protocol interface ICore is IPermissions { // ----------- Events ----------- event FeiUpdate(address indexed _fei); event TribeUpdate(address indexed _tribe); event GenesisGroupUpdate(address indexed _genesisGroup); event TribeAllocation(address indexed _to, uint256 _amount); event GenesisPeriodComplete(uint256 _timestamp); // ----------- Governor only state changing api ----------- function init() external; // ----------- Governor only state changing api ----------- function setFei(address token) external; function setTribe(address token) external; function allocateTribe(address to, uint256 amount) external; // ----------- Getters ----------- function fei() external view returns (IFei); function tribe() external view returns (IERC20); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./IPermissionsRead.sol"; /// @title Permissions interface /// @author Fei Protocol interface IPermissions is IAccessControl, IPermissionsRead { // ----------- Governor only state changing api ----------- function createRole(bytes32 role, bytes32 adminRole) external; function grantMinter(address minter) external; function grantBurner(address burner) external; function grantPCVController(address pcvController) external; function grantGovernor(address governor) external; function grantGuardian(address guardian) external; function revokeMinter(address minter) external; function revokeBurner(address burner) external; function revokePCVController(address pcvController) external; function revokeGovernor(address governor) external; function revokeGuardian(address guardian) external; // ----------- Revoker only state changing api ----------- function revokeOverride(bytes32 role, address account) external; // ----------- Getters ----------- function GUARDIAN_ROLE() external view returns (bytes32); function GOVERN_ROLE() external view returns (bytes32); function BURNER_ROLE() external view returns (bytes32); function MINTER_ROLE() external view returns (bytes32); function PCV_CONTROLLER_ROLE() external view returns (bytes32); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; /// @title Permissions Read interface /// @author Fei Protocol interface IPermissionsRead { // ----------- Getters ----------- function isBurner(address _address) external view returns (bool); function isMinter(address _address) external view returns (bool); function isGovernor(address _address) external view returns (bool); function isGuardian(address _address) external view returns (bool); function isPCVController(address _address) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title FEI stablecoin interface /// @author Fei Protocol interface IFei is IERC20 { // ----------- Events ----------- event Minting( address indexed _to, address indexed _minter, uint256 _amount ); event Burning( address indexed _to, address indexed _burner, uint256 _amount ); event IncentiveContractUpdate( address indexed _incentivized, address indexed _incentiveContract ); // ----------- State changing api ----------- function burn(uint256 amount) external; function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; // ----------- Burner only state changing api ----------- function burnFrom(address account, uint256 amount) external; // ----------- Minter only state changing api ----------- function mint(address account, uint256 amount) external; // ----------- Governor only state changing api ----------- function setIncentiveContract(address account, address incentive) external; // ----------- Getters ----------- function incentiveContract(address account) external view returns (address); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./IPCVDepositBalances.sol"; /// @title a PCV Deposit interface /// @author Fei Protocol interface IPCVDeposit is IPCVDepositBalances { // ----------- Events ----------- event Deposit(address indexed _from, uint256 _amount); event Withdrawal( address indexed _caller, address indexed _to, uint256 _amount ); event WithdrawERC20( address indexed _caller, address indexed _token, address indexed _to, uint256 _amount ); event WithdrawETH( address indexed _caller, address indexed _to, uint256 _amount ); // ----------- State changing api ----------- function deposit() external; // ----------- PCV Controller only state changing api ----------- function withdraw(address to, uint256 amount) external; function withdrawERC20(address token, address to, uint256 amount) external; function withdrawETH(address payable to, uint256 amount) external; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; /// @title a PCV Deposit interface for only balance getters /// @author Fei Protocol interface IPCVDepositBalances { // ----------- Getters ----------- /// @notice gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn function balance() external view returns (uint256); /// @notice gets the token address in which this deposit returns its balance function balanceReportedIn() external view returns (address); /// @notice gets the resistant token balance and protocol owned fei of this deposit function resistantBalanceAndFei() external view returns (uint256, uint256); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; library Constants { /// @notice the denominator for basis points granularity (10,000) uint256 public constant BASIS_POINTS_GRANULARITY = 10_000; uint256 public constant ONE_YEAR = 365.25 days; /// @notice WETH9 address IWETH public constant WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); /// @notice USD stand-in address address public constant USD = 0x1111111111111111111111111111111111111111; /// @notice Wei per ETH, i.e. 10**18 uint256 public constant ETH_GRANULARITY = 1e18; /// @notice number of decimals in ETH, 18 uint256 public constant ETH_DECIMALS = 18; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
{ "metadata": { "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_core","type":"address"},{"internalType":"address","name":"_cToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"oldContractAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newContractAdminRole","type":"bytes32"}],"name":"ContractAdminRoleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldCore","type":"address"},{"indexed":true,"internalType":"address","name":"newCore","type":"address"}],"name":"CoreUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"CONTRACT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceReportedIn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cToken","outputs":[{"internalType":"contract CToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fei","outputs":[{"internalType":"contract IFei","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feiBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"isContractAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resistantBalanceAndFei","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newContractAdminRole","type":"bytes32"}],"name":"setContractAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCore","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tribe","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tribeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountUnderlying","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620019f3380380620019f38339810160408190526200003491620002a2565b6000805460ff191690558181816200004c816200014a565b5080600260016101000a8154816001600160a01b0302191690836001600160a01b03160217905550600260019054906101000a90046001600160a01b03166001600160a01b031663fe9c44ae6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000c8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ee9190620002da565b620001405760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a204e6f7420612063546f6b656e60448201526064015b60405180910390fd5b505050506200031f565b60025460ff16156200019f5760405162461bcd60e51b815260206004820152601c60248201527f436f72655265663a20616c726561647920696e697469616c697a656400000000604482015260640162000137565b60028054600160ff1990911617905560008054610100600160a81b0319166101006001600160a01b038481168202929092179283905560408051631c5bfa2360e11b81529051620002499492909204909216916338b7f4469160048083019260209291908290030181865afa1580156200021d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000243919062000305565b6200024c565b50565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b80516001600160a01b03811681146200029d57600080fd5b919050565b60008060408385031215620002b657600080fd5b620002c18362000285565b9150620002d16020840162000285565b90509250929050565b600060208284031215620002ed57600080fd5b81518015158114620002fe57600080fd5b9392505050565b6000602082840312156200031857600080fd5b5051919050565b6116c4806200032f6000396000f3fe6080604052600436106101235760003560e01c80638456cb59116100a0578063d0e30db011610064578063d0e30db0146102fb578063d348844214610310578063f2f4eb2614610330578063f3fef3a314610353578063fc81a12a1461037357600080fd5b80638456cb59146102925780639a9ba4da146102a7578063b4905897146102bc578063b69ef8a8146102d1578063b86677fe146102e657600080fd5b80634951fcd4116100e75780634951fcd4146101ea5780635c975abb1461021457806369e527da146102385780636b6dff0a1461025d578063800096301461027257600080fd5b80630c68f63b1461012f5780631da033121461016f5780633f4ba83a1461019357806344004cc1146101aa5780634782f779146101ca57600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018560015481565b604051908152602001610166565b34801561019f57600080fd5b506101a8610393565b005b3480156101b657600080fd5b506101a86101c53660046113c6565b6104a8565b3480156101d657600080fd5b506101a86101e5366004611407565b610544565b3480156101f657600080fd5b506101ff61061f565b60408051928352602083019190915201610166565b34801561022057600080fd5b5060005460ff165b6040519015158152602001610166565b34801561024457600080fd5b506002546101529061010090046001600160a01b031681565b34801561026957600080fd5b50610185610633565b34801561027e57600080fd5b506101a861028d366004611433565b6106ac565b34801561029e57600080fd5b506101a86107df565b3480156102b357600080fd5b506101526108e9565b3480156102c857600080fd5b50610185610961565b3480156102dd57600080fd5b5061018561096b565b3480156102f257600080fd5b50610152610a7d565b34801561030757600080fd5b506101a8610ad1565b34801561031c57600080fd5b506101a861032b366004611450565b610b9b565b34801561033c57600080fd5b5060005461010090046001600160a01b0316610152565b34801561035f57600080fd5b506101a861036e366004611407565b610c33565b34801561037f57600080fd5b5061022861038e366004611433565b610de9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156103df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104039190611469565b806104795750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610455573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104799190611469565b61049e5760405162461bcd60e51b81526004016104959061148b565b60405180910390fd5b6104a6610e6f565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa1580156104f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105189190611469565b6105345760405162461bcd60e51b8152600401610495906114d8565b61053f838383610f02565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b49190611469565b6105d05760405162461bcd60e51b8152600401610495906114d8565b6105da8282610f72565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd48906020015b60405180910390a35050565b60008061062a61096b565b92600092509050565b600061063d610a7d565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a7919061151f565b905090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156106f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071c9190611469565b6107385760405162461bcd60e51b815260040161049590611538565b6001600160a01b0381166107865760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b6044820152606401610495565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa15801561082b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084f9190611469565b806108c55750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190611469565b6108e15760405162461bcd60e51b81526004016104959061148b565b6104a661108b565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a79190611579565b600061063d6108e9565b600080600260019054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e5919061151f565b6002546040516370a0823160e01b8152306004820152919250670de0b6b3a764000091839161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a63919061151f565b610a6d9190611596565b610a7791906115c3565b91505090565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561093d573d6000803e3d6000fd5b60005460ff1615610af45760405162461bcd60e51b8152600401610495906115e5565b6000479050600260019054906101000a90046001600160a01b03166001600160a01b0316631249c58b826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610b4957600080fd5b505af1158015610b5d573d6000803e3d6000fd5b50506040518481523393507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9250602001905060405180910390a250565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0b9190611469565b610c275760405162461bcd60e51b815260040161049590611538565b610c30816110e3565b50565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca39190611469565b610cbf5760405162461bcd60e51b8152600401610495906114d8565b60005460ff1615610ce25760405162461bcd60e51b8152600401610495906115e5565b60025460405163852a12e360e01b8152600481018390526101009091046001600160a01b03169063852a12e3906024016020604051808303816000875af1158015610d31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d55919061151f565b15610da25760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a2072656465656d206572726f726044820152606401610495565b610dac828261111c565b6040518181526001600160a01b0383169033907f2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b639890602001610613565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d1485490604401602060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e699190611469565b92915050565b60005460ff16610eb85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610495565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610f166001600160a01b038416838361112a565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd074084604051610f6591815260200190565b60405180910390a4505050565b80471015610fc25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610495565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461100f576040519150601f19603f3d011682016040523d82523d6000602084013e611014565b606091505b505090508061053f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610495565b60005460ff16156110ae5760405162461bcd60e51b8152600401610495906115e5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ee53390565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b6111268282610f72565b5050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261053f928692916000916111ba918516908490611237565b80519091501561053f57808060200190518101906111d89190611469565b61053f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610495565b60606112468484600085611250565b90505b9392505050565b6060824710156112b15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610495565b843b6112ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610495565b600080866001600160a01b0316858760405161131b919061163f565b60006040518083038185875af1925050503d8060008114611358576040519150601f19603f3d011682016040523d82523d6000602084013e61135d565b606091505b509150915061136d828286611378565b979650505050505050565b60608315611387575081611249565b8251156113975782518084602001fd5b8160405162461bcd60e51b8152600401610495919061165b565b6001600160a01b0381168114610c3057600080fd5b6000806000606084860312156113db57600080fd5b83356113e6816113b1565b925060208401356113f6816113b1565b929592945050506040919091013590565b6000806040838503121561141a57600080fd5b8235611425816113b1565b946020939093013593505050565b60006020828403121561144557600080fd5b8135611249816113b1565b60006020828403121561146257600080fd5b5035919050565b60006020828403121561147b57600080fd5b8151801515811461124957600080fd5b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60006020828403121561153157600080fd5b5051919050565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60006020828403121561158b57600080fd5b8151611249816113b1565b60008160001904831182151516156115be57634e487b7160e01b600052601160045260246000fd5b500290565b6000826115e057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60005b8381101561162a578181015183820152602001611612565b83811115611639576000848401525b50505050565b6000825161165181846020870161160f565b9190910192915050565b602081526000825180602084015261167a81604085016020870161160f565b601f01601f1916919091016040019291505056fea2646970667358221220db3696911e42a70d7982258bec607d3aeff99f8781bfad98fc12a31011417bd464736f6c634300080a00330000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9000000000000000000000000fbd8aaf46ab3c2732fa930e5b343cd67cea5054c
Deployed Bytecode
0x6080604052600436106101235760003560e01c80638456cb59116100a0578063d0e30db011610064578063d0e30db0146102fb578063d348844214610310578063f2f4eb2614610330578063f3fef3a314610353578063fc81a12a1461037357600080fd5b80638456cb59146102925780639a9ba4da146102a7578063b4905897146102bc578063b69ef8a8146102d1578063b86677fe146102e657600080fd5b80634951fcd4116100e75780634951fcd4146101ea5780635c975abb1461021457806369e527da146102385780636b6dff0a1461025d578063800096301461027257600080fd5b80630c68f63b1461012f5780631da033121461016f5780633f4ba83a1461019357806344004cc1146101aa5780634782f779146101ca57600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018560015481565b604051908152602001610166565b34801561019f57600080fd5b506101a8610393565b005b3480156101b657600080fd5b506101a86101c53660046113c6565b6104a8565b3480156101d657600080fd5b506101a86101e5366004611407565b610544565b3480156101f657600080fd5b506101ff61061f565b60408051928352602083019190915201610166565b34801561022057600080fd5b5060005460ff165b6040519015158152602001610166565b34801561024457600080fd5b506002546101529061010090046001600160a01b031681565b34801561026957600080fd5b50610185610633565b34801561027e57600080fd5b506101a861028d366004611433565b6106ac565b34801561029e57600080fd5b506101a86107df565b3480156102b357600080fd5b506101526108e9565b3480156102c857600080fd5b50610185610961565b3480156102dd57600080fd5b5061018561096b565b3480156102f257600080fd5b50610152610a7d565b34801561030757600080fd5b506101a8610ad1565b34801561031c57600080fd5b506101a861032b366004611450565b610b9b565b34801561033c57600080fd5b5060005461010090046001600160a01b0316610152565b34801561035f57600080fd5b506101a861036e366004611407565b610c33565b34801561037f57600080fd5b5061022861038e366004611433565b610de9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156103df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104039190611469565b806104795750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610455573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104799190611469565b61049e5760405162461bcd60e51b81526004016104959061148b565b60405180910390fd5b6104a6610e6f565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa1580156104f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105189190611469565b6105345760405162461bcd60e51b8152600401610495906114d8565b61053f838383610f02565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b49190611469565b6105d05760405162461bcd60e51b8152600401610495906114d8565b6105da8282610f72565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd48906020015b60405180910390a35050565b60008061062a61096b565b92600092509050565b600061063d610a7d565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a7919061151f565b905090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156106f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071c9190611469565b6107385760405162461bcd60e51b815260040161049590611538565b6001600160a01b0381166107865760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b6044820152606401610495565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa15801561082b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084f9190611469565b806108c55750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190611469565b6108e15760405162461bcd60e51b81526004016104959061148b565b6104a661108b565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a79190611579565b600061063d6108e9565b600080600260019054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e5919061151f565b6002546040516370a0823160e01b8152306004820152919250670de0b6b3a764000091839161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a63919061151f565b610a6d9190611596565b610a7791906115c3565b91505090565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561093d573d6000803e3d6000fd5b60005460ff1615610af45760405162461bcd60e51b8152600401610495906115e5565b6000479050600260019054906101000a90046001600160a01b03166001600160a01b0316631249c58b826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610b4957600080fd5b505af1158015610b5d573d6000803e3d6000fd5b50506040518481523393507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9250602001905060405180910390a250565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0b9190611469565b610c275760405162461bcd60e51b815260040161049590611538565b610c30816110e3565b50565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca39190611469565b610cbf5760405162461bcd60e51b8152600401610495906114d8565b60005460ff1615610ce25760405162461bcd60e51b8152600401610495906115e5565b60025460405163852a12e360e01b8152600481018390526101009091046001600160a01b03169063852a12e3906024016020604051808303816000875af1158015610d31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d55919061151f565b15610da25760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a2072656465656d206572726f726044820152606401610495565b610dac828261111c565b6040518181526001600160a01b0383169033907f2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b639890602001610613565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d1485490604401602060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e699190611469565b92915050565b60005460ff16610eb85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610495565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610f166001600160a01b038416838361112a565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd074084604051610f6591815260200190565b60405180910390a4505050565b80471015610fc25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610495565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461100f576040519150601f19603f3d011682016040523d82523d6000602084013e611014565b606091505b505090508061053f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610495565b60005460ff16156110ae5760405162461bcd60e51b8152600401610495906115e5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ee53390565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b6111268282610f72565b5050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261053f928692916000916111ba918516908490611237565b80519091501561053f57808060200190518101906111d89190611469565b61053f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610495565b60606112468484600085611250565b90505b9392505050565b6060824710156112b15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610495565b843b6112ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610495565b600080866001600160a01b0316858760405161131b919061163f565b60006040518083038185875af1925050503d8060008114611358576040519150601f19603f3d011682016040523d82523d6000602084013e61135d565b606091505b509150915061136d828286611378565b979650505050505050565b60608315611387575081611249565b8251156113975782518084602001fd5b8160405162461bcd60e51b8152600401610495919061165b565b6001600160a01b0381168114610c3057600080fd5b6000806000606084860312156113db57600080fd5b83356113e6816113b1565b925060208401356113f6816113b1565b929592945050506040919091013590565b6000806040838503121561141a57600080fd5b8235611425816113b1565b946020939093013593505050565b60006020828403121561144557600080fd5b8135611249816113b1565b60006020828403121561146257600080fd5b5035919050565b60006020828403121561147b57600080fd5b8151801515811461124957600080fd5b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60006020828403121561153157600080fd5b5051919050565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60006020828403121561158b57600080fd5b8151611249816113b1565b60008160001904831182151516156115be57634e487b7160e01b600052601160045260246000fd5b500290565b6000826115e057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60005b8381101561162a578181015183820152602001611612565b83811115611639576000848401525b50505050565b6000825161165181846020870161160f565b9190910192915050565b602081526000825180602084015261167a81604085016020870161160f565b601f01601f1916919091016040019291505056fea2646970667358221220db3696911e42a70d7982258bec607d3aeff99f8781bfad98fc12a31011417bd464736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9000000000000000000000000fbd8aaf46ab3c2732fa930e5b343cd67cea5054c
-----Decoded View---------------
Arg [0] : _core (address): 0x8d5ED43dCa8C2F7dFB20CF7b53CC7E593635d7b9
Arg [1] : _cToken (address): 0xfbD8Aaf46Ab3C2732FA930e5B343cd67cEA5054C
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9
Arg [1] : 000000000000000000000000fbd8aaf46ab3c2732fa930e5b343cd67cea5054c
Deployed Bytecode Sourcemap
282:1082:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1247:115;;;;;;;;;;-1:-1:-1;414:42:0;1247:115:9;;;-1:-1:-1;;;;;178:32:23;;;160:51;;148:2;133:18;1247:115:9;;;;;;;;455:43:10;;;;;;;;;;;;;;;;;;;368:25:23;;;356:2;341:18;455:43:10;222:177:23;3623:85:10;;;;;;;;;;;;;:::i;:::-;;592:184:7;;;;;;;;;;-1:-1:-1;592:184:7;;;;;:::i;:::-;;:::i;1136:206::-;;;;;;;;;;-1:-1:-1;1136:206:7;;;;;:::i;:::-;;:::i;1419:125::-;;;;;;;;;;;;;:::i;:::-;;;;1503:25:23;;;1559:2;1544:18;;1537:34;;;;1476:18;1419:125:7;1329:248:23;1098:84:14;;;;;;;;;;-1:-1:-1;1145:4:14;1168:7;;;1098:84;;;1747:14:23;;1740:22;1722:41;;1710:2;1695:18;1098:84:14;1582:187:23;670:20:8;;;;;;;;;;-1:-1:-1;670:20:8;;;;;;;-1:-1:-1;;;;;670:20:8;;;4580:119:10;;;;;;;;;;;;;:::i;2733:254::-;;;;;;;;;;-1:-1:-1;2733:254:10;;;;;:::i;:::-;;:::i;3487:81::-;;;;;;;;;;;;;:::i;4010:86::-;;;;;;;;;;;;;:::i;4383:115::-;;;;;;;;;;;;;:::i;1811:210:8:-;;;;;;;;;;;;;:::i;4213:92:10:-;;;;;;;;;;;;;:::i;764:275:9:-;;;;;;;;;;;;;:::i;3049:151:10:-;;;;;;;;;;-1:-1:-1;3049:151:10;;;;;:::i;:::-;;:::i;3815:82::-;;;;;;;;;;-1:-1:-1;3861:5:10;3885;;;;-1:-1:-1;;;;;3885:5:10;3815:82;;1251:394:8;;;;;;;;;;-1:-1:-1;1251:394:8;;;;;:::i;:::-;;:::i;3291:143:10:-;;;;;;;;;;-1:-1:-1;3291:143:10;;;;;:::i;:::-;;:::i;3623:85::-;2074:5;;:28;;-1:-1:-1;;;2074:28:10;;2091:10;2074:28;;;160:51:23;2074:5:10;;;;-1:-1:-1;;;;;2074:5:10;;:16;;133:18:23;;2074:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;2119:5:10;;:28;;-1:-1:-1;;;2119:28:10;;2136:10;2119:28;;;160:51:23;2119:5:10;;;;-1:-1:-1;;;;;2119:5:10;;:16;;133:18:23;;2119:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2053:165;;;;-1:-1:-1;;;2053:165:10;;;;;;;:::i;:::-;;;;;;;;;3691:10:::1;:8;:10::i;:::-;3623:85::o:0;592:184:7:-;1487:5:10;;:33;;-1:-1:-1;;;1487:33:10;;1509:10;1487:33;;;160:51:23;1487:5:10;;;;-1:-1:-1;;;;;1487:5:10;;:21;;133:18:23;;1487:33:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:10;;;;;;;:::i;:::-;736:33:7::1;751:5;758:2;762:6;736:14;:33::i;:::-;592:184:::0;;;:::o;1136:206::-;1487:5:10;;:33;;-1:-1:-1;;;1487:33:10;;1509:10;1487:33;;;160:51:23;1487:5:10;;;;-1:-1:-1;;;;;1487:5:10;;:21;;133:18:23;;1487:33:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:10;;;;;;;:::i;:::-;1250:32:7::1;1268:2;1272:9;1250:17;:32::i;:::-;1297:38;::::0;368:25:23;;;-1:-1:-1;;;;;1297:38:7;::::1;::::0;1309:10:::1;::::0;1297:38:::1;::::0;356:2:23;341:18;1297:38:7::1;;;;;;;;1136:206:::0;;:::o;1419:125::-;1490:7;1499;1524:9;:7;:9::i;:::-;1516:21;1535:1;;-1:-1:-1;1419:125:7;-1:-1:-1;1419:125:7:o;4580:119:10:-;4634:7;4660;:5;:7::i;:::-;:32;;-1:-1:-1;;;4660:32:10;;4686:4;4660:32;;;160:51:23;-1:-1:-1;;;;;4660:17:10;;;;;;;133:18:23;;4660:32:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4653:39;;4580:119;:::o;2733:254::-;1898:5;;:28;;-1:-1:-1;;;1898:28:10;;1915:10;1898:28;;;160:51:23;1898:5:10;;;;-1:-1:-1;;;;;1898:5:10;;:16;;133:18:23;;1898:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:10;;;;;;;:::i;:::-;-1:-1:-1;;;;;2816:21:10;::::1;2808:55;;;::::0;-1:-1:-1;;;2808:55:10;;5495:2:23;2808:55:10::1;::::0;::::1;5477:21:23::0;5534:2;5514:18;;;5507:30;-1:-1:-1;;;5553:18:23;;;5546:51;5614:18;;2808:55:10::1;5293:345:23::0;2808:55:10::1;2873:15;2899:5:::0;;-1:-1:-1;;;;;2915:22:10;;::::1;2899:5;2915:22:::0;;::::1;-1:-1:-1::0;;;;;;2915:22:10;::::1;;::::0;;2952:28:::1;::::0;2899:5;::::1;::::0;;;::::1;::::0;2915:22;;2899:5;;2952:28:::1;::::0;::::1;2798:189;2733:254:::0;:::o;3487:81::-;2074:5;;:28;;-1:-1:-1;;;2074:28:10;;2091:10;2074:28;;;160:51:23;2074:5:10;;;;-1:-1:-1;;;;;2074:5:10;;:16;;133:18:23;;2074:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;2119:5:10;;:28;;-1:-1:-1;;;2119:28:10;;2136:10;2119:28;;;160:51:23;2119:5:10;;;;-1:-1:-1;;;;;2119:5:10;;:16;;133:18:23;;2119:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2053:165;;;;-1:-1:-1;;;2053:165:10;;;;;;;:::i;:::-;3553:8:::1;:6;:8::i;4010:86::-:0;4055:4;4078:5;;;;;;;;;-1:-1:-1;;;;;4078:5:10;-1:-1:-1;;;;;4078:9:10;;:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;4383:115::-;4435:7;4461:5;:3;:5::i;1811:210:8:-;1860:7;1879:20;1902:6;;;;;;;;;-1:-1:-1;;;;;1902:6:8;-1:-1:-1;;;;;1902:25:8;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1946:6;;:31;;-1:-1:-1;;;1946:31:8;;1971:4;1946:31;;;160:51:23;1879:50:8;;-1:-1:-1;744:4:8;;1879:50;;1946:6;;;-1:-1:-1;;;;;1946:6:8;;:16;;133:18:23;;1946:31:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;;;:::i;:::-;:68;;;;:::i;:::-;1939:75;;;1811:210;:::o;4213:92:10:-;4260:6;4285:5;;;;;;;;;-1:-1:-1;;;;;4285:5:10;-1:-1:-1;;;;;4285:11:10;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;764:275:9;1145:4:14;1168:7;;;1411:9;1403:38;;;;-1:-1:-1;;;1403:38:14;;;;;;;:::i;:::-;853:14:9::1;870:21;853:38;;960:6;;;;;;;;;-1:-1:-1::0;;;;;960:6:9::1;-1:-1:-1::0;;;;;945:28:9::1;;981:6;945:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1005:27:9::1;::::0;368:25:23;;;1013:10:9::1;::::0;-1:-1:-1;1005:27:9::1;::::0;-1:-1:-1;356:2:23;341:18;;-1:-1:-1;1005:27:9::1;;;;;;;843:196;764:275::o:0;3049:151:10:-;1898:5;;:28;;-1:-1:-1;;;1898:28:10;;1915:10;1898:28;;;160:51:23;1898:5:10;;;;-1:-1:-1;;;;;1898:5:10;;:16;;133:18:23;;1898:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:10;;;;;;;:::i;:::-;3150:43:::1;3172:20;3150:21;:43::i;:::-;3049:151:::0;:::o;1251:394:8:-;1487:5:10;;:33;;-1:-1:-1;;;1487:33:10;;1509:10;1487:33;;;160:51:23;1487:5:10;;;;-1:-1:-1;;;;;1487:5:10;;:21;;133:18:23;;1487:33:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:10;;;;;;;:::i;:::-;1145:4:14;1168:7;;;1411:9:::1;1403:38;;;;-1:-1:-1::0;;;1403:38:14::1;;;;;;;:::i;:::-;1424:6:8::2;::::0;:41:::2;::::0;-1:-1:-1;;;1424:41:8;;::::2;::::0;::::2;368:25:23::0;;;1424:6:8::2;::::0;;::::2;-1:-1:-1::0;;;;;1424:6:8::2;::::0;:23:::2;::::0;341:18:23;;1424:41:8::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46:::0;1403:125:::2;;;::::0;-1:-1:-1;;;1403:125:8;;7221:2:23;1403:125:8::2;::::0;::::2;7203:21:23::0;;;7240:18;;;7233:30;7299:34;7279:18;;;7272:62;7351:18;;1403:125:8::2;7019:356:23::0;1403:125:8::2;1538:41;1558:2;1562:16;1538:19;:41::i;:::-;1594:44;::::0;368:25:23;;;-1:-1:-1;;;;;1594:44:8;::::2;::::0;1605:10:::2;::::0;1594:44:::2;::::0;356:2:23;341:18;1594:44:8::2;222:177:23::0;3291:143:10;3362:4;3385:5;;;3399:19;3385:42;;-1:-1:-1;;;3385:42:10;;;;;7554:25:23;;;;-1:-1:-1;;;;;7615:32:23;;;7595:18;;;7588:60;3385:5:10;;;;;;;;:13;;7527:18:23;;3385:42:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3378:49;3291:143;-1:-1:-1;;3291:143:10:o;2110:117:14:-;1145:4;1168:7;;;1669:41;;;;-1:-1:-1;;;1669:41:14;;7861:2:23;1669:41:14;;;7843:21:23;7900:2;7880:18;;;7873:30;-1:-1:-1;;;7919:18:23;;;7912:50;7979:18;;1669:41:14;7659:344:23;1669:41:14;2178:5:::1;2168:15:::0;;-1:-1:-1;;2168:15:14::1;::::0;;2198:22:::1;719:10:18::0;2207:12:14::1;2198:22;::::0;-1:-1:-1;;;;;178:32:23;;;160:51;;148:2;133:18;2198:22:14::1;;;;;;;2110:117::o:0;782:216:7:-;894:38;-1:-1:-1;;;;;894:26:7;;921:2;925:6;894:26;:38::i;:::-;980:2;-1:-1:-1;;;;;947:44:7;973:5;-1:-1:-1;;;;;947:44:7;961:10;-1:-1:-1;;;;;947:44:7;;984:6;947:44;;;;368:25:23;;356:2;341:18;;222:177;947:44:7;;;;;;;;782:216;;;:::o;2065:312:17:-;2179:6;2154:21;:31;;2146:73;;;;-1:-1:-1;;;2146:73:17;;8210:2:23;2146:73:17;;;8192:21:23;8249:2;8229:18;;;8222:30;8288:31;8268:18;;;8261:59;8337:18;;2146:73:17;8008:353:23;2146:73:17;2231:12;2249:9;-1:-1:-1;;;;;2249:14:17;2271:6;2249:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2230:52;;;2300:7;2292:78;;;;-1:-1:-1;;;2292:78:17;;8778:2:23;2292:78:17;;;8760:21:23;8817:2;8797:18;;;8790:30;8856:34;8836:18;;;8829:62;8927:28;8907:18;;;8900:56;8973:19;;2292:78:17;8576:422:23;1863:115:14;1145:4;1168:7;;;1411:9;1403:38;;;;-1:-1:-1;;;1403:38:14;;;;;;;:::i;:::-;1922:7:::1;:14:::0;;-1:-1:-1;;1922:14:14::1;1932:4;1922:14;::::0;;1951:20:::1;1958:12;719:10:18::0;;640:96;4934:271:10;5045:19;;;5074:42;;;;5131:67;;5096:20;;5045:19;;5131:67;;5014:28;;5131:67;5004:201;4934:271;:::o;1045:130:9:-;1130:38;1156:2;1161:6;1130:17;:38::i;:::-;1045:130;;:::o;701:205:16:-;840:58;;;-1:-1:-1;;;;;9195:32:23;;;840:58:16;;;9177:51:23;9244:18;;;;9237:34;;;840:58:16;;;;;;;;;;9150:18:23;;;;840:58:16;;;;;;;;-1:-1:-1;;;;;840:58:16;-1:-1:-1;;;840:58:16;;;3652:69;;;;;;;;;;;;;;;;813:86;;833:5;;840:58;-1:-1:-1;;3652:69:16;;:27;;;840:58;;3652:27;:69::i;:::-;3735:17;;3626:95;;-1:-1:-1;3735:21:16;3731:176;;3830:10;3819:30;;;;;;;;;;;;:::i;:::-;3811:85;;;;-1:-1:-1;;;3811:85:16;;9484:2:23;3811:85:16;;;9466:21:23;9523:2;9503:18;;;9496:30;9562:34;9542:18;;;9535:62;-1:-1:-1;;;9613:18:23;;;9606:40;9663:19;;3811:85:16;9282:406:23;3514:223:17;3647:12;3678:52;3700:6;3708:4;3714:1;3717:12;3678:21;:52::i;:::-;3671:59;;3514:223;;;;;;:::o;4601:499::-;4766:12;4823:5;4798:21;:30;;4790:81;;;;-1:-1:-1;;;4790:81:17;;9895:2:23;4790:81:17;;;9877:21:23;9934:2;9914:18;;;9907:30;9973:34;9953:18;;;9946:62;-1:-1:-1;;;10024:18:23;;;10017:36;10070:19;;4790:81:17;9693:402:23;4790:81:17;1087:20;;4881:60;;;;-1:-1:-1;;;4881:60:17;;10302:2:23;4881:60:17;;;10284:21:23;10341:2;10321:18;;;10314:30;10380:31;10360:18;;;10353:59;10429:18;;4881:60:17;10100:353:23;4881:60:17;4953:12;4967:23;4994:6;-1:-1:-1;;;;;4994:11:17;5013:5;5020:4;4994:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4952:73;;;;5042:51;5059:7;5068:10;5080:12;5042:16;:51::i;:::-;5035:58;4601:499;-1:-1:-1;;;;;;;4601:499:17:o;7214:692::-;7360:12;7388:7;7384:516;;;-1:-1:-1;7418:10:17;7411:17;;7384:516;7529:17;;:21;7525:365;;7723:10;7717:17;7783:15;7770:10;7766:2;7762:19;7755:44;7525:365;7862:12;7855:20;;-1:-1:-1;;;7855:20:17;;;;;;;;:::i;404:131:23:-;-1:-1:-1;;;;;479:31:23;;469:42;;459:70;;525:1;522;515:12;540:456;617:6;625;633;686:2;674:9;665:7;661:23;657:32;654:52;;;702:1;699;692:12;654:52;741:9;728:23;760:31;785:5;760:31;:::i;:::-;810:5;-1:-1:-1;867:2:23;852:18;;839:32;880:33;839:32;880:33;:::i;:::-;540:456;;932:7;;-1:-1:-1;;;986:2:23;971:18;;;;958:32;;540:456::o;1001:323::-;1077:6;1085;1138:2;1126:9;1117:7;1113:23;1109:32;1106:52;;;1154:1;1151;1144:12;1106:52;1193:9;1180:23;1212:31;1237:5;1212:31;:::i;:::-;1262:5;1314:2;1299:18;;;;1286:32;;-1:-1:-1;;;1001:323:23:o;2178:247::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2345:9;2332:23;2364:31;2389:5;2364:31;:::i;2873:180::-;2932:6;2985:2;2973:9;2964:7;2960:23;2956:32;2953:52;;;3001:1;2998;2991:12;2953:52;-1:-1:-1;3024:23:23;;2873:180;-1:-1:-1;2873:180:23:o;3598:277::-;3665:6;3718:2;3706:9;3697:7;3693:23;3689:32;3686:52;;;3734:1;3731;3724:12;3686:52;3766:9;3760:16;3819:5;3812:13;3805:21;3798:5;3795:32;3785:60;;3841:1;3838;3831:12;3880:409;4082:2;4064:21;;;4121:2;4101:18;;;4094:30;4160:34;4155:2;4140:18;;4133:62;-1:-1:-1;;;4226:2:23;4211:18;;4204:43;4279:3;4264:19;;3880:409::o;4294:403::-;4496:2;4478:21;;;4535:2;4515:18;;;4508:30;4574:34;4569:2;4554:18;;4547:62;-1:-1:-1;;;4640:2:23;4625:18;;4618:37;4687:3;4672:19;;4294:403::o;4702:184::-;4772:6;4825:2;4813:9;4804:7;4800:23;4796:32;4793:52;;;4841:1;4838;4831:12;4793:52;-1:-1:-1;4864:16:23;;4702:184;-1:-1:-1;4702:184:23:o;4891:397::-;5093:2;5075:21;;;5132:2;5112:18;;;5105:30;5171:34;5166:2;5151:18;;5144:62;-1:-1:-1;;;5237:2:23;5222:18;;5215:31;5278:3;5263:19;;4891:397::o;5643:263::-;5725:6;5778:2;5766:9;5757:7;5753:23;5749:32;5746:52;;;5794:1;5791;5784:12;5746:52;5826:9;5820:16;5845:31;5870:5;5845:31;:::i;5911:265::-;5951:7;6017:1;6013;6009:6;6005:14;6002:1;5999:21;5994:1;5987:9;5980:17;5976:45;5973:168;;;6063:10;6058:3;6054:20;6051:1;6044:31;6098:4;6095:1;6088:15;6126:4;6123:1;6116:15;5973:168;-1:-1:-1;6161:9:23;;5911:265::o;6181:217::-;6221:1;6247;6237:132;;6291:10;6286:3;6282:20;6279:1;6272:31;6326:4;6323:1;6316:15;6354:4;6351:1;6344:15;6237:132;-1:-1:-1;6383:9:23;;6181:217::o;6674:340::-;6876:2;6858:21;;;6915:2;6895:18;;;6888:30;-1:-1:-1;;;6949:2:23;6934:18;;6927:46;7005:2;6990:18;;6674:340::o;10458:258::-;10530:1;10540:113;10554:6;10551:1;10548:13;10540:113;;;10630:11;;;10624:18;10611:11;;;10604:39;10576:2;10569:10;10540:113;;;10671:6;10668:1;10665:13;10662:48;;;10706:1;10697:6;10692:3;10688:16;10681:27;10662:48;;10458:258;;;:::o;10721:274::-;10850:3;10888:6;10882:13;10904:53;10950:6;10945:3;10938:4;10930:6;10926:17;10904:53;:::i;:::-;10973:16;;;;;10721:274;-1:-1:-1;;10721:274:23:o;11000:383::-;11149:2;11138:9;11131:21;11112:4;11181:6;11175:13;11224:6;11219:2;11208:9;11204:18;11197:34;11240:66;11299:6;11294:2;11283:9;11279:18;11274:2;11266:6;11262:15;11240:66;:::i;:::-;11367:2;11346:15;-1:-1:-1;;11342:29:23;11327:45;;;;11374:2;11323:54;;11000:383;-1:-1:-1;;11000:383:23:o
Swarm Source
ipfs://db3696911e42a70d7982258bec607d3aeff99f8781bfad98fc12a31011417bd4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 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.