Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ERC20CompoundPCVDeposit
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "./CompoundPCVDepositBase.sol"; interface CErc20 { function mint(uint256 amount) external returns (uint256); } /// @title ERC-20 implementation for a Compound PCV Deposit /// @author Fei Protocol contract ERC20CompoundPCVDeposit is CompoundPCVDepositBase { /// @notice the token underlying the cToken IERC20 public token; /// @notice Compound ERC20 PCV Deposit constructor /// @param _core Fei Core for reference /// @param _cToken Compound cToken to deposit /// @param _token the token underlying the cToken constructor( address _core, address _cToken, IERC20 _token ) CompoundPCVDepositBase(_core, _cToken) { token = _token; } /// @notice deposit ERC-20 tokens to Compound function deposit() external override whenNotPaused { uint256 amount = token.balanceOf(address(this)); token.approve(address(cToken), amount); // Compound returns non-zero when there is an error require(CErc20(address(cToken)).mint(amount) == 0, "ERC20CompoundPCVDeposit: deposit error"); emit Deposit(msg.sender, amount); } function _transferUnderlying(address to, uint256 amount) internal override { SafeERC20.safeTransfer(token, to, amount); } }
// 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 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); } }
// 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 CoreRef constructor /// @param coreAddress Fei Core to reference constructor(address coreAddress) { _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 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(uint256 amount) internal { fei().mint(address(this), 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 "../token/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"; /// @title Permissions interface /// @author Fei Protocol interface IPermissions is IAccessControl { // ----------- 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 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); 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; 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; /// @title a PCV Deposit interface /// @author Fei Protocol interface IPCVDeposit { // ----------- 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; // ----------- Getters ----------- function balance() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/ * * _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]{20}) is missing role (0x[0-9a-f]{32})$/ */ 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 granted `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}. * ==== */ 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 { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT 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 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 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); }
{ "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"},{"internalType":"contract IERC20","name":"_token","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":"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":[{"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":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001abb38038062001abb833981016040819052620000349162000227565b600080546001600160a81b0319166101006001600160a01b038681168202929092179283905560408051631c5bfa2360e11b81529051879487948694620000e194920416916338b7f44691600480820192602092909190829003018186803b158015620000a057600080fd5b505afa158015620000b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000db9190620002a3565b620001ee565b50600280546001600160a01b0319166001600160a01b03831690811790915560408051637f4e225760e11b8152905163fe9c44ae91600480820192602092909190829003018186803b1580156200013757600080fd5b505afa1580156200014c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200017291906200027a565b620001c35760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a204e6f7420612063546f6b656e604482015260640160405180910390fd5b5050600380546001600160a01b0319166001600160a01b039290921691909117905550620002d59050565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b6000806000606084860312156200023c578283fd5b83516200024981620002bc565b60208501519093506200025c81620002bc565b60408501519092506200026f81620002bc565b809150509250925092565b6000602082840312156200028c578081fd5b815180151581146200029c578182fd5b9392505050565b600060208284031215620002b5578081fd5b5051919050565b6001600160a01b0381168114620002d257600080fd5b50565b6117d680620002e56000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80639a9ba4da116100ad578063d348844211610071578063d3488442146101ff578063f2f4eb2614610212578063f3fef3a314610228578063fc0c546a1461023b578063fc81a12a1461024e57600080fd5b80639a9ba4da146101d7578063b4905897146101df578063b69ef8a8146101e7578063b86677fe146101ef578063d0e30db0146101f757600080fd5b80635c975abb116100f45780635c975abb1461017257806369e527da146101895780636b6dff0a146101b457806380009630146101bc5780638456cb59146101cf57600080fd5b80631da03312146101265780633f4ba83a1461014257806344004cc11461014c5780634782f7791461015f575b600080fd5b61012f60015481565b6040519081526020015b60405180910390f35b61014a610261565b005b61014a61015a366004611504565b610394565b61014a61016d3660046114d9565b61043f565b60005460ff165b6040519015158152602001610139565b60025461019c906001600160a01b031681565b6040516001600160a01b039091168152602001610139565b61012f610529565b61014a6101ca3660046114bd565b6105b1565b61014a6106f3565b61019c61081b565b61012f6108a2565b61012f6108ac565b61019c6109d7565b61014a610a26565b61014a61020d366004611576565b610c62565b60005461010090046001600160a01b031661019c565b61014a610236366004611544565b610d09565b60035461019c906001600160a01b031681565b61017961025c3660046114bd565b610ed9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b1580156102a857600080fd5b505afa1580156102bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e09190611556565b806103655750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba219060240160206040518083038186803b15801561032d57600080fd5b505afa158015610341573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103659190611556565b61038a5760405162461bcd60e51b815260040161038190611611565b60405180910390fd5b610392610f6e565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b1580156103db57600080fd5b505afa1580156103ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104139190611556565b61042f5760405162461bcd60e51b81526004016103819061165e565b61043a838383611001565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be9190611556565b6104da5760405162461bcd60e51b81526004016103819061165e565b6104e48282611071565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd48906020015b60405180910390a35050565b60006105336109d7565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b15801561057457600080fd5b505afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac91906115aa565b905090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106309190611556565b61064c5760405162461bcd60e51b8152600401610381906116cf565b6001600160a01b03811661069a5760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b6044820152606401610381565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b15801561073a57600080fd5b505afa15801561074e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107729190611556565b806107f75750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba219060240160206040518083038186803b1580156107bf57600080fd5b505afa1580156107d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f79190611556565b6108135760405162461bcd60e51b815260040161038190611611565b61039261118a565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b815260040160206040518083038186803b15801561086a57600080fd5b505afa15801561087e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061158e565b600061053361081b565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fd57600080fd5b505afa158015610911573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093591906115aa565b6002546040516370a0823160e01b8152306004820152919250670de0b6b3a76400009183916001600160a01b0316906370a082319060240160206040518083038186803b15801561098557600080fd5b505afa158015610999573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bd91906115aa565b6109c79190611730565b6109d19190611710565b91505090565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561086a57600080fd5b60005460ff1615610a495760405162461bcd60e51b8152600401610381906116a5565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610a8d57600080fd5b505afa158015610aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac591906115aa565b60035460025460405163095ea7b360e01b81526001600160a01b03918216600482015260248101849052929350169063095ea7b390604401602060405180830381600087803b158015610b1757600080fd5b505af1158015610b2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4f9190611556565b5060025460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d6890602401602060405180830381600087803b158015610b9657600080fd5b505af1158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce91906115aa565b15610c2a5760405162461bcd60e51b815260206004820152602660248201527f4552433230436f6d706f756e645043564465706f7369743a206465706f7369746044820152651032b93937b960d11b6064820152608401610381565b60405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b158015610ca957600080fd5b505afa158015610cbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce19190611556565b610cfd5760405162461bcd60e51b8152600401610381906116cf565b610d06816111e2565b50565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b158015610d5057600080fd5b505afa158015610d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d889190611556565b610da45760405162461bcd60e51b81526004016103819061165e565b60005460ff1615610dc75760405162461bcd60e51b8152600401610381906116a5565b60025460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e390602401602060405180830381600087803b158015610e0d57600080fd5b505af1158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4591906115aa565b15610e925760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a2072656465656d206572726f726044820152606401610381565b610e9c828261121b565b6040518181526001600160a01b0383169033907f2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b63989060200161051d565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d148549060440160206040518083038186803b158015610f3057600080fd5b505afa158015610f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f689190611556565b92915050565b60005460ff16610fb75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610381565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6110156001600160a01b0384168383611236565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd07408460405161106491815260200190565b60405180910390a4505050565b804710156110c15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610381565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461110e576040519150601f19603f3d011682016040523d82523d6000602084013e611113565b606091505b505090508061043a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610381565b60005460ff16156111ad5760405162461bcd60e51b8152600401610381906116a5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fe43390565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b600354611232906001600160a01b03168383611236565b5050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261043a928692916000916112c6918516908490611343565b80519091501561043a57808060200190518101906112e49190611556565b61043a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610381565b6060611352848460008561135c565b90505b9392505050565b6060824710156113bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610381565b843b61140b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610381565b600080866001600160a01b0316858760405161142791906115c2565b60006040518083038185875af1925050503d8060008114611464576040519150601f19603f3d011682016040523d82523d6000602084013e611469565b606091505b5091509150611479828286611484565b979650505050505050565b60608315611493575081611355565b8251156114a35782518084602001fd5b8160405162461bcd60e51b815260040161038191906115de565b6000602082840312156114ce578081fd5b81356113558161178b565b600080604083850312156114eb578081fd5b82356114f68161178b565b946020939093013593505050565b600080600060608486031215611518578081fd5b83356115238161178b565b925060208401356115338161178b565b929592945050506040919091013590565b600080604083850312156114eb578182fd5b600060208284031215611567578081fd5b81518015158114611355578182fd5b600060208284031215611587578081fd5b5035919050565b60006020828403121561159f578081fd5b81516113558161178b565b6000602082840312156115bb578081fd5b5051919050565b600082516115d481846020870161175b565b9190910192915050565b60208152600082518060208401526115fd81604085016020870161175b565b601f01601f19169190910160400192915050565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60008261172b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561175657634e487b7160e01b81526011600452602481fd5b500290565b60005b8381101561177657818101518382015260200161175e565b83811115611785576000848401525b50505050565b6001600160a01b0381168114610d0657600080fdfea26469706673582212202abaefc625d348fda148bb9d058bfcbc16f7f5c22ec599d43c69d181a8e276c364736f6c634300080400330000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b90000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e36430000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c80639a9ba4da116100ad578063d348844211610071578063d3488442146101ff578063f2f4eb2614610212578063f3fef3a314610228578063fc0c546a1461023b578063fc81a12a1461024e57600080fd5b80639a9ba4da146101d7578063b4905897146101df578063b69ef8a8146101e7578063b86677fe146101ef578063d0e30db0146101f757600080fd5b80635c975abb116100f45780635c975abb1461017257806369e527da146101895780636b6dff0a146101b457806380009630146101bc5780638456cb59146101cf57600080fd5b80631da03312146101265780633f4ba83a1461014257806344004cc11461014c5780634782f7791461015f575b600080fd5b61012f60015481565b6040519081526020015b60405180910390f35b61014a610261565b005b61014a61015a366004611504565b610394565b61014a61016d3660046114d9565b61043f565b60005460ff165b6040519015158152602001610139565b60025461019c906001600160a01b031681565b6040516001600160a01b039091168152602001610139565b61012f610529565b61014a6101ca3660046114bd565b6105b1565b61014a6106f3565b61019c61081b565b61012f6108a2565b61012f6108ac565b61019c6109d7565b61014a610a26565b61014a61020d366004611576565b610c62565b60005461010090046001600160a01b031661019c565b61014a610236366004611544565b610d09565b60035461019c906001600160a01b031681565b61017961025c3660046114bd565b610ed9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b1580156102a857600080fd5b505afa1580156102bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e09190611556565b806103655750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba219060240160206040518083038186803b15801561032d57600080fd5b505afa158015610341573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103659190611556565b61038a5760405162461bcd60e51b815260040161038190611611565b60405180910390fd5b610392610f6e565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b1580156103db57600080fd5b505afa1580156103ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104139190611556565b61042f5760405162461bcd60e51b81526004016103819061165e565b61043a838383611001565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be9190611556565b6104da5760405162461bcd60e51b81526004016103819061165e565b6104e48282611071565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd48906020015b60405180910390a35050565b60006105336109d7565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b15801561057457600080fd5b505afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac91906115aa565b905090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106309190611556565b61064c5760405162461bcd60e51b8152600401610381906116cf565b6001600160a01b03811661069a5760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b6044820152606401610381565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b15801561073a57600080fd5b505afa15801561074e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107729190611556565b806107f75750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba219060240160206040518083038186803b1580156107bf57600080fd5b505afa1580156107d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f79190611556565b6108135760405162461bcd60e51b815260040161038190611611565b61039261118a565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b815260040160206040518083038186803b15801561086a57600080fd5b505afa15801561087e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061158e565b600061053361081b565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fd57600080fd5b505afa158015610911573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093591906115aa565b6002546040516370a0823160e01b8152306004820152919250670de0b6b3a76400009183916001600160a01b0316906370a082319060240160206040518083038186803b15801561098557600080fd5b505afa158015610999573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bd91906115aa565b6109c79190611730565b6109d19190611710565b91505090565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561086a57600080fd5b60005460ff1615610a495760405162461bcd60e51b8152600401610381906116a5565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610a8d57600080fd5b505afa158015610aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac591906115aa565b60035460025460405163095ea7b360e01b81526001600160a01b03918216600482015260248101849052929350169063095ea7b390604401602060405180830381600087803b158015610b1757600080fd5b505af1158015610b2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4f9190611556565b5060025460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d6890602401602060405180830381600087803b158015610b9657600080fd5b505af1158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce91906115aa565b15610c2a5760405162461bcd60e51b815260206004820152602660248201527f4552433230436f6d706f756e645043564465706f7369743a206465706f7369746044820152651032b93937b960d11b6064820152608401610381565b60405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b89060240160206040518083038186803b158015610ca957600080fd5b505afa158015610cbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce19190611556565b610cfd5760405162461bcd60e51b8152600401610381906116cf565b610d06816111e2565b50565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e9060240160206040518083038186803b158015610d5057600080fd5b505afa158015610d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d889190611556565b610da45760405162461bcd60e51b81526004016103819061165e565b60005460ff1615610dc75760405162461bcd60e51b8152600401610381906116a5565b60025460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e390602401602060405180830381600087803b158015610e0d57600080fd5b505af1158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4591906115aa565b15610e925760405162461bcd60e51b815260206004820181905260248201527f436f6d706f756e645043564465706f7369743a2072656465656d206572726f726044820152606401610381565b610e9c828261121b565b6040518181526001600160a01b0383169033907f2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b63989060200161051d565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d148549060440160206040518083038186803b158015610f3057600080fd5b505afa158015610f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f689190611556565b92915050565b60005460ff16610fb75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610381565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6110156001600160a01b0384168383611236565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd07408460405161106491815260200190565b60405180910390a4505050565b804710156110c15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610381565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461110e576040519150601f19603f3d011682016040523d82523d6000602084013e611113565b606091505b505090508061043a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610381565b60005460ff16156111ad5760405162461bcd60e51b8152600401610381906116a5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fe43390565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b600354611232906001600160a01b03168383611236565b5050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261043a928692916000916112c6918516908490611343565b80519091501561043a57808060200190518101906112e49190611556565b61043a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610381565b6060611352848460008561135c565b90505b9392505050565b6060824710156113bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610381565b843b61140b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610381565b600080866001600160a01b0316858760405161142791906115c2565b60006040518083038185875af1925050503d8060008114611464576040519150601f19603f3d011682016040523d82523d6000602084013e611469565b606091505b5091509150611479828286611484565b979650505050505050565b60608315611493575081611355565b8251156114a35782518084602001fd5b8160405162461bcd60e51b815260040161038191906115de565b6000602082840312156114ce578081fd5b81356113558161178b565b600080604083850312156114eb578081fd5b82356114f68161178b565b946020939093013593505050565b600080600060608486031215611518578081fd5b83356115238161178b565b925060208401356115338161178b565b929592945050506040919091013590565b600080604083850312156114eb578182fd5b600060208284031215611567578081fd5b81518015158114611355578182fd5b600060208284031215611587578081fd5b5035919050565b60006020828403121561159f578081fd5b81516113558161178b565b6000602082840312156115bb578081fd5b5051919050565b600082516115d481846020870161175b565b9190910192915050565b60208152600082518060208401526115fd81604085016020870161175b565b601f01601f19169190910160400192915050565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60008261172b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561175657634e487b7160e01b81526011600452602481fd5b500290565b60005b8381101561177657818101518382015260200161175e565b83811115611785576000848401525b50505050565b6001600160a01b0381168114610d0657600080fdfea26469706673582212202abaefc625d348fda148bb9d058bfcbc16f7f5c22ec599d43c69d181a8e276c364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b90000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e36430000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
-----Decoded View---------------
Arg [0] : _core (address): 0x8d5ED43dCa8C2F7dFB20CF7b53CC7E593635d7b9
Arg [1] : _cToken (address): 0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643
Arg [2] : _token (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9
Arg [1] : 0000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643
Arg [2] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Deployed Bytecode Sourcemap
279:1105:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;455:43:6;;;;;;;;;3985:25:18;;;3973:2;3958:18;455:43:6;;;;;;;;2999:85;;;:::i;:::-;;592:176:3;;;;;;:::i;:::-;;:::i;1128:206::-;;;;;;:::i;:::-;;:::i;1041:84:10:-;1088:4;1111:7;;;1041:84;;;3812:14:18;;3805:22;3787:41;;3775:2;3760:18;1041:84:10;3742:92:18;670:20:4;;;;;-1:-1:-1;;;;;670:20:4;;;;;;-1:-1:-1;;;;;3324:32:18;;;3306:51;;3294:2;3279:18;670:20:4;3261:102:18;3956:119:6;;;:::i;2109:254::-;;;;;;:::i;:::-;;:::i;2863:81::-;;;:::i;3386:86::-;;;:::i;3759:115::-;;;:::i;1811:210:4:-;;;:::i;3589:92:6:-;;;:::i;837:406:5:-;;;:::i;2425:151:6:-;;;;;;:::i;:::-;;:::i;3191:82::-;3237:5;3261;;;;-1:-1:-1;;;;;3261:5:6;3191:82;;1251:394:4;;;;;;:::i;:::-;;:::i;393:19:5:-;;;;;-1:-1:-1;;;;;393:19:5;;;2667:143:6;;;;;;:::i;:::-;;:::i;2999:85::-;1730:5;;:28;;-1:-1:-1;;;1730:28:6;;1747:10;1730:28;;;3306:51:18;1730:5:6;;;;-1:-1:-1;;;;;1730:5:6;;:16;;3279:18:18;;1730:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;1775:5:6;;:28;;-1:-1:-1;;;1775:28:6;;1792:10;1775:28;;;3306:51:18;1775:5:6;;;;-1:-1:-1;;;;;1775:5:6;;:16;;3279:18:18;;1775:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1709:165;;;;-1:-1:-1;;;1709:165:6;;;;;;;:::i;:::-;;;;;;;;;3067:10:::1;:8;:10::i;:::-;2999:85::o:0;592:176:3:-;1143:5:6;;:33;;-1:-1:-1;;;1143:33:6;;1165:10;1143:33;;;3306:51:18;1143:5:6;;;;-1:-1:-1;;;;;1143:5:6;;:21;;3279:18:18;;1143:33:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1122:119;;;;-1:-1:-1;;;1122:119:6;;;;;;;:::i;:::-;728:33:3::1;743:5;750:2;754:6;728:14;:33::i;:::-;592:176:::0;;;:::o;1128:206::-;1143:5:6;;:33;;-1:-1:-1;;;1143:33:6;;1165:10;1143:33;;;3306:51:18;1143:5:6;;;;-1:-1:-1;;;;;1143:5:6;;:21;;3279:18:18;;1143:33:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1122:119;;;;-1:-1:-1;;;1122:119:6;;;;;;;:::i;:::-;1242:32:3::1;1260:2;1264:9;1242:17;:32::i;:::-;1289:38;::::0;3985:25:18;;;-1:-1:-1;;;;;1289:38:3;::::1;::::0;1301:10:::1;::::0;1289:38:::1;::::0;3973:2:18;3958:18;1289:38:3::1;;;;;;;;1128:206:::0;;:::o;3956:119:6:-;4010:7;4036;:5;:7::i;:::-;:32;;-1:-1:-1;;;4036:32:6;;4062:4;4036:32;;;3306:51:18;-1:-1:-1;;;;;4036:17:6;;;;;;;3279:18:18;;4036:32:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4029:39;;3956:119;:::o;2109:254::-;1554:5;;:28;;-1:-1:-1;;;1554:28:6;;1571:10;1554:28;;;3306:51:18;1554:5:6;;;;-1:-1:-1;;;;;1554:5:6;;:16;;3279:18:18;;1554:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1533:108;;;;-1:-1:-1;;;1533:108:6;;;;;;;:::i;:::-;-1:-1:-1;;;;;2192:21:6;::::1;2184:55;;;::::0;-1:-1:-1;;;2184:55:6;;8891:2:18;2184:55:6::1;::::0;::::1;8873:21:18::0;8930:2;8910:18;;;8903:30;-1:-1:-1;;;8949:18:18;;;8942:51;9010:18;;2184:55:6::1;8863:171:18::0;2184:55:6::1;2249:15;2275:5:::0;;-1:-1:-1;;;;;2291:22:6;;::::1;2275:5;2291:22:::0;;::::1;-1:-1:-1::0;;;;;;2291:22:6;::::1;;::::0;;2328:28:::1;::::0;2275:5;::::1;::::0;;;::::1;::::0;2291:22;;2275:5;;2328:28:::1;::::0;::::1;1651:1;2109:254:::0;:::o;2863:81::-;1730:5;;:28;;-1:-1:-1;;;1730:28:6;;1747:10;1730:28;;;3306:51:18;1730:5:6;;;;-1:-1:-1;;;;;1730:5:6;;:16;;3279:18:18;;1730:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;1775:5:6;;:28;;-1:-1:-1;;;1775:28:6;;1792:10;1775:28;;;3306:51:18;1775:5:6;;;;-1:-1:-1;;;;;1775:5:6;;:16;;3279:18:18;;1775:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1709:165;;;;-1:-1:-1;;;1709:165:6;;;;;;;:::i;:::-;2929:8:::1;:6;:8::i;3386:86::-:0;3431:4;3454:5;;;;;;;;;-1:-1:-1;;;;;3454:5:6;-1:-1:-1;;;;;3454:9:6;;:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3759:115::-;3811:7;3837:5;:3;:5::i;1811:210:4:-;1860:7;1879:20;1902:6;;;;;;;;;-1:-1:-1;;;;;1902:6:4;-1:-1:-1;;;;;1902:25:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1946:6;;:31;;-1:-1:-1;;;1946:31:4;;1971:4;1946:31;;;3306:51:18;1879:50:4;;-1:-1:-1;744:4:4;;1879:50;;-1:-1:-1;;;;;1946:6:4;;:16;;3279:18:18;;1946:31:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;;;:::i;:::-;:68;;;;:::i;:::-;1939:75;;;1811:210;:::o;3589:92:6:-;3636:6;3661:5;;;;;;;;;-1:-1:-1;;;;;3661:5:6;-1:-1:-1;;;;;3661:11:6;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;837:406:5;1088:4:10;1111:7;;;1354:9;1346:38;;;;-1:-1:-1;;;1346:38:10;;;;;;;:::i;:::-;943:5:5::1;::::0;:30:::1;::::0;-1:-1:-1;;;943:30:5;;967:4:::1;943:30;::::0;::::1;3306:51:18::0;926:14:5::1;::::0;-1:-1:-1;;;;;943:5:5::1;::::0;:15:::1;::::0;3279:18:18;;943:30:5::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;984:5;::::0;1006:6:::1;::::0;984:38:::1;::::0;-1:-1:-1;;;984:38:5;;-1:-1:-1;;;;;1006:6:5;;::::1;984:38;::::0;::::1;3542:51:18::0;3609:18;;;3602:34;;;926:47:5;;-1:-1:-1;984:5:5::1;::::0;:13:::1;::::0;3515:18:18;;984:38:5::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;1116:6:5::1;::::0;1101:36:::1;::::0;-1:-1:-1;;;1101:36:5;;::::1;::::0;::::1;3985:25:18::0;;;-1:-1:-1;;;;;1116:6:5;;::::1;::::0;1101:28:::1;::::0;3958:18:18;;1101:36:5::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41:::0;1093:92:::1;;;::::0;-1:-1:-1;;;1093:92:5;;6947:2:18;1093:92:5::1;::::0;::::1;6929:21:18::0;6986:2;6966:18;;;6959:30;7025:34;7005:18;;;6998:62;-1:-1:-1;;;7076:18:18;;;7069:36;7122:19;;1093:92:5::1;6919:228:18::0;1093:92:5::1;1209:27;::::0;3985:25:18;;;1217:10:5::1;::::0;1209:27:::1;::::0;3973:2:18;3958:18;1209:27:5::1;;;;;;;1394:1:10;837:406:5:o:0;2425:151:6:-;1554:5;;:28;;-1:-1:-1;;;1554:28:6;;1571:10;1554:28;;;3306:51:18;1554:5:6;;;;-1:-1:-1;;;;;1554:5:6;;:16;;3279:18:18;;1554:28:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1533:108;;;;-1:-1:-1;;;1533:108:6;;;;;;;:::i;:::-;2526:43:::1;2548:20;2526:21;:43::i;:::-;2425:151:::0;:::o;1251:394:4:-;1143:5:6;;:33;;-1:-1:-1;;;1143:33:6;;1165:10;1143:33;;;3306:51:18;1143:5:6;;;;-1:-1:-1;;;;;1143:5:6;;:21;;3279:18:18;;1143:33:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1122:119;;;;-1:-1:-1;;;1122:119:6;;;;;;;:::i;:::-;1088:4:10;1111:7;;;1354:9:::1;1346:38;;;;-1:-1:-1::0;;;1346:38:10::1;;;;;;;:::i;:::-;1424:6:4::2;::::0;:41:::2;::::0;-1:-1:-1;;;1424:41:4;;::::2;::::0;::::2;3985:25:18::0;;;-1:-1:-1;;;;;1424:6:4;;::::2;::::0;:23:::2;::::0;3958:18:18;;1424:41:4::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46:::0;1403:125:::2;;;::::0;-1:-1:-1;;;1403:125:4;;9241:2:18;1403:125:4::2;::::0;::::2;9223:21:18::0;;;9260:18;;;9253:30;9319:34;9299:18;;;9292:62;9371:18;;1403:125:4::2;9213:182:18::0;1403:125:4::2;1538:41;1558:2;1562:16;1538:19;:41::i;:::-;1594:44;::::0;3985:25:18;;;-1:-1:-1;;;;;1594:44:4;::::2;::::0;1605:10:::2;::::0;1594:44:::2;::::0;3973:2:18;3958:18;1594:44:4::2;3940:76:18::0;2667:143:6;2738:4;2761:5;;;2775:19;2761:42;;-1:-1:-1;;;2761:42:6;;;;;4195:25:18;;;;-1:-1:-1;;;;;4256:32:18;;;4236:18;;;4229:60;2761:5:6;;;;;;;;:13;;4168:18:18;;2761:42:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2754:49;2667:143;-1:-1:-1;;2667:143:6:o;2053:117:10:-;1088:4;1111:7;;;1612:41;;;;-1:-1:-1;;;1612:41:10;;5776:2:18;1612:41:10;;;5758:21:18;5815:2;5795:18;;;5788:30;-1:-1:-1;;;5834:18:18;;;5827:50;5894:18;;1612:41:10;5748:170:18;1612:41:10;2121:5:::1;2111:15:::0;;-1:-1:-1;;2111:15:10::1;::::0;;2141:22:::1;665:10:14::0;2150:12:10::1;2141:22;::::0;-1:-1:-1;;;;;3324:32:18;;;3306:51;;3294:2;3279:18;2141:22:10::1;;;;;;;2053:117::o:0;774:216:3:-;886:38;-1:-1:-1;;;;;886:26:3;;913:2;917:6;886:26;:38::i;:::-;972:2;-1:-1:-1;;;;;939:44:3;965:5;-1:-1:-1;;;;;939:44:3;953:10;-1:-1:-1;;;;;939:44:3;;976:6;939:44;;;;3985:25:18;;3973:2;3958:18;;3940:76;939:44:3;;;;;;;;774:216;;;:::o;2012:312:13:-;2126:6;2101:21;:31;;2093:73;;;;-1:-1:-1;;;2093:73:13;;7781:2:18;2093:73:13;;;7763:21:18;7820:2;7800:18;;;7793:30;7859:31;7839:18;;;7832:59;7908:18;;2093:73:13;7753:179:18;2093:73:13;2178:12;2196:9;-1:-1:-1;;;;;2196:14:13;2218:6;2196:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2177:52;;;2247:7;2239:78;;;;-1:-1:-1;;;2239:78:13;;7354:2:18;2239:78:13;;;7336:21:18;7393:2;7373:18;;;7366:30;7432:34;7412:18;;;7405:62;7503:28;7483:18;;;7476:56;7549:19;;2239:78:13;7326:248:18;1806:115:10;1088:4;1111:7;;;1354:9;1346:38;;;;-1:-1:-1;;;1346:38:10;;;;;;;:::i;:::-;1865:7:::1;:14:::0;;-1:-1:-1;;1865:14:10::1;1875:4;1865:14;::::0;;1894:20:::1;1901:12;665:10:14::0;;586:96;4260:271:6;4371:19;;;4400:42;;;;4457:67;;4422:20;;4371:19;;4457:67;;4340:28;;4457:67;4260:271;;:::o;1249:133:5:-;1357:5;;1334:41;;-1:-1:-1;;;;;1357:5:5;1364:2;1368:6;1334:22;:41::i;:::-;1249:133;;:::o;634:205:12:-;773:58;;;-1:-1:-1;;;;;3560:32:18;;;773:58:12;;;3542:51:18;3609:18;;;;3602:34;;;773:58:12;;;;;;;;;;3515:18:18;;;;773:58:12;;;;;;;;-1:-1:-1;;;;;773:58:12;-1:-1:-1;;;773:58:12;;;3585:69;;;;;;;;;;;;;;;;746:86;;766:5;;773:58;-1:-1:-1;;3585:69:12;;:27;;;773:58;;3585:27;:69::i;:::-;3668:17;;3559:95;;-1:-1:-1;3668:21:12;3664:176;;3763:10;3752:30;;;;;;;;;;;;:::i;:::-;3744:85;;;;-1:-1:-1;;;3744:85:12;;10362:2:18;3744:85:12;;;10344:21:18;10401:2;10381:18;;;10374:30;10440:34;10420:18;;;10413:62;-1:-1:-1;;;10491:18:18;;;10484:40;10541:19;;3744:85:12;10334:232:18;3461:223:13;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;;3461:223;;;;;;:::o;4548:500::-;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:13;;8139:2:18;4737:81:13;;;8121:21:18;8178:2;8158:18;;;8151:30;8217:34;8197:18;;;8190:62;-1:-1:-1;;;8268:18:18;;;8261:36;8314:19;;4737:81:13;8111:228:18;4737:81:13;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:13;;9602:2:18;4828:60:13;;;9584:21:18;9641:2;9621:18;;;9614:30;9680:31;9660:18;;;9653:59;9729:18;;4828:60:13;9574:179:18;4828:60:13;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:13;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:52;5007:7;5016:10;5028:12;4989:17;:52::i;:::-;4982:59;4548:500;-1:-1:-1;;;;;;;4548:500:13:o;6950:692::-;7096:12;7124:7;7120:516;;;-1:-1:-1;7154:10:13;7147:17;;7120:516;7265:17;;:21;7261:365;;7459:10;7453:17;7519:15;7506:10;7502:2;7498:19;7491:44;7408:145;7598:12;7591:20;;-1:-1:-1;;;7591:20:13;;;;;;;;:::i;14:257:18:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:333::-;352:6;360;413:2;401:9;392:7;388:23;384:32;381:2;;;434:6;426;419:22;381:2;478:9;465:23;497:31;522:5;497:31;:::i;:::-;547:5;599:2;584:18;;;;571:32;;-1:-1:-1;;;371:238:18:o;614:466::-;691:6;699;707;760:2;748:9;739:7;735:23;731:32;728:2;;;781:6;773;766:22;728:2;825:9;812:23;844:31;869:5;844:31;:::i;:::-;894:5;-1:-1:-1;951:2:18;936:18;;923:32;964:33;923:32;964:33;:::i;:::-;718:362;;1016:7;;-1:-1:-1;;;1070:2:18;1055:18;;;;1042:32;;718:362::o;1085:325::-;1153:6;1161;1214:2;1202:9;1193:7;1189:23;1185:32;1182:2;;;1235:6;1227;1220:22;1415:297;1482:6;1535:2;1523:9;1514:7;1510:23;1506:32;1503:2;;;1556:6;1548;1541:22;1503:2;1593:9;1587:16;1646:5;1639:13;1632:21;1625:5;1622:32;1612:2;;1673:6;1665;1658:22;1717:190;1776:6;1829:2;1817:9;1808:7;1804:23;1800:32;1797:2;;;1850:6;1842;1835:22;1797:2;-1:-1:-1;1878:23:18;;1787:120;-1:-1:-1;1787:120:18:o;1912:276::-;1997:6;2050:2;2038:9;2029:7;2025:23;2021:32;2018:2;;;2071:6;2063;2056:22;2018:2;2108:9;2102:16;2127:31;2152:5;2127:31;:::i;2472:194::-;2542:6;2595:2;2583:9;2574:7;2570:23;2566:32;2563:2;;;2616:6;2608;2601:22;2563:2;-1:-1:-1;2644:16:18;;2553:113;-1:-1:-1;2553:113:18:o;2671:274::-;2800:3;2838:6;2832:13;2854:53;2900:6;2895:3;2888:4;2880:6;2876:17;2854:53;:::i;:::-;2923:16;;;;;2808:137;-1:-1:-1;;2808:137:18:o;5186:383::-;5335:2;5324:9;5317:21;5298:4;5367:6;5361:13;5410:6;5405:2;5394:9;5390:18;5383:34;5426:66;5485:6;5480:2;5469:9;5465:18;5460:2;5452:6;5448:15;5426:66;:::i;:::-;5553:2;5532:15;-1:-1:-1;;5528:29:18;5513:45;;;;5560:2;5509:54;;5307:262;-1:-1:-1;;5307:262:18:o;5923:409::-;6125:2;6107:21;;;6164:2;6144:18;;;6137:30;6203:34;6198:2;6183:18;;6176:62;-1:-1:-1;;;6269:2:18;6254:18;;6247:43;6322:3;6307:19;;6097:235::o;6337:403::-;6539:2;6521:21;;;6578:2;6558:18;;;6551:30;6617:34;6612:2;6597:18;;6590:62;-1:-1:-1;;;6683:2:18;6668:18;;6661:37;6730:3;6715:19;;6511:229::o;8344:340::-;8546:2;8528:21;;;8585:2;8565:18;;;8558:30;-1:-1:-1;;;8619:2:18;8604:18;;8597:46;8675:2;8660:18;;8518:166::o;9758:397::-;9960:2;9942:21;;;9999:2;9979:18;;;9972:30;10038:34;10033:2;10018:18;;10011:62;-1:-1:-1;;;10104:2:18;10089:18;;10082:31;10145:3;10130:19;;9932:223::o;10753:217::-;10793:1;10819;10809:2;;-1:-1:-1;;;10844:31:18;;10898:4;10895:1;10888:15;10926:4;10851:1;10916:15;10809:2;-1:-1:-1;10955:9:18;;10799:171::o;10975:277::-;11015:7;11081:1;11077;11073:6;11069:14;11066:1;11063:21;11058:1;11051:9;11044:17;11040:45;11037:2;;;-1:-1:-1;;;11108:37:18;;11168:4;11165:1;11158:15;11202:4;11115:7;11186:21;11037:2;-1:-1:-1;11237:9:18;;11027:225::o;11257:258::-;11329:1;11339:113;11353:6;11350:1;11347:13;11339:113;;;11429:11;;;11423:18;11410:11;;;11403:39;11375:2;11368:10;11339:113;;;11470:6;11467:1;11464:13;11461:2;;;11505:1;11496:6;11491:3;11487:16;11480:27;11461:2;;11310:205;;;:::o;11520:131::-;-1:-1:-1;;;;;11595:31:18;;11585:42;;11575:2;;11641:1;11638;11631:12
Swarm Source
ipfs://2abaefc625d348fda148bb9d058bfcbc16f7f5c22ec599d43c69d181a8e276c3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.