Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 249 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exchange | 17677001 | 519 days ago | IN | 0 ETH | 0.00047599 | ||||
Exchange | 17676644 | 519 days ago | IN | 0 ETH | 0.00031145 | ||||
Exchange | 17638730 | 525 days ago | IN | 0 ETH | 0.00062557 | ||||
Exchange | 17638677 | 525 days ago | IN | 0 ETH | 0.00061005 | ||||
Exchange | 17616291 | 528 days ago | IN | 0 ETH | 0.00147664 | ||||
Exchange | 17615310 | 528 days ago | IN | 0 ETH | 0.00222299 | ||||
Exchange | 17611255 | 529 days ago | IN | 0 ETH | 0.00222549 | ||||
Exchange | 17596090 | 531 days ago | IN | 0 ETH | 0.00223265 | ||||
Exchange | 17592764 | 531 days ago | IN | 0 ETH | 0.00398964 | ||||
Exchange | 17573593 | 534 days ago | IN | 0 ETH | 0.0024513 | ||||
Exchange | 17570244 | 534 days ago | IN | 0 ETH | 0.00197357 | ||||
Exchange | 17564884 | 535 days ago | IN | 0 ETH | 0.0038984 | ||||
Exchange | 17558798 | 536 days ago | IN | 0 ETH | 0.00236333 | ||||
Exchange | 17554971 | 537 days ago | IN | 0 ETH | 0.00203568 | ||||
Exchange | 17550673 | 537 days ago | IN | 0 ETH | 0.00276963 | ||||
Exchange | 17550582 | 537 days ago | IN | 0 ETH | 0.00296588 | ||||
Exchange | 17550556 | 537 days ago | IN | 0 ETH | 0.00257814 | ||||
Exchange | 17548866 | 537 days ago | IN | 0 ETH | 0.00243226 | ||||
Exchange | 17547562 | 538 days ago | IN | 0 ETH | 0.00203398 | ||||
Exchange | 17545744 | 538 days ago | IN | 0 ETH | 0.00152816 | ||||
Exchange | 17540951 | 539 days ago | IN | 0 ETH | 0.00214289 | ||||
Exchange | 17535787 | 539 days ago | IN | 0 ETH | 0.00289237 | ||||
Exchange | 17531591 | 540 days ago | IN | 0 ETH | 0.00231555 | ||||
Exchange | 17531404 | 540 days ago | IN | 0 ETH | 0.00200381 | ||||
Exchange | 17531309 | 540 days ago | IN | 0 ETH | 0.00236132 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ExchangeROOK
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /// @title Exchange contract from ROOK to pROOK and USDC /// @author IANAL contract ExchangeROOK is Ownable, Pausable { using SafeERC20 for IERC20; /// @notice ROOK IERC20 public immutable tokenROOK; /// @notice pROOK IERC20 public immutable tokenPROOK; /// @notice USDC IERC20 public immutable tokenUSDC; // /// @notice Exchange Rate uint256 public exchangeRate; /// @notice emitted when exchange ROOK to pROOK and USDC event Exchange(address indexed user, uint256 amount, uint256 value); event ExchangeRateSet(uint256 exchangeRate); // // @notice constructor // @param _tokenROOK ROOK token address // @param _tokenPROOK pROOK token address // @param _tokenUSDC USDC token address // @param _exchangeRate exchange rate value of USDC per ROOK with 4 decimals // constructor(IERC20 _tokenROOK, IERC20 _tokenPROOK, IERC20 _tokenUSDC, uint256 _exchangeRate) Ownable() { tokenROOK = _tokenROOK; tokenPROOK = _tokenPROOK; tokenUSDC = _tokenUSDC; exchangeRate = _exchangeRate; _pause(); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } /** * @notice Exchange rate value with 4 decimals, example 455000 = $45.50 * @param _exchangeRate amount of USDC per ROOK (USD / ROOK) */ function setExchangeRate(uint256 _exchangeRate) external onlyOwner { exchangeRate = _exchangeRate; emit ExchangeRateSet(_exchangeRate); } /** * @notice Withdraw IERC20 token * @param _token address for withdraw * @param _amount to withdraw */ function withdrawAssets(IERC20 _token, uint256 _amount) external onlyOwner { _token.safeTransfer(owner(), _amount); } /** * @notice Exchange from ROOK to pROOK and USDC * @param _amount of ROOK exchanged */ function exchange(uint256 _amount) external whenNotPaused { tokenROOK.safeTransferFrom(_msgSender(), address(this), _amount); uint256 _value = _amount * exchangeRate / 1e16; // @note 1e18 * 1e4 / 1e16 = 1e6 tokenPROOK.safeTransfer(_msgSender(), _amount); tokenUSDC.safeTransfer(_msgSender(), _value); emit Exchange(_msgSender(), _amount, _value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.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)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_tokenROOK","type":"address"},{"internalType":"contract IERC20","name":"_tokenPROOK","type":"address"},{"internalType":"contract IERC20","name":"_tokenUSDC","type":"address"},{"internalType":"uint256","name":"_exchangeRate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Exchange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"exchangeRate","type":"uint256"}],"name":"ExchangeRateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"exchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_exchangeRate","type":"uint256"}],"name":"setExchangeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPROOK","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenROOK","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenUSDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawAssets","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040516200199c3803806200199c833981810160405281019062000037919062000393565b620000576200004b6200012e60201b60201c565b6200013660201b60201c565b60008060146101000a81548160ff0219169083151502179055508373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508060018190555062000124620001fa60201b60201c565b50505050620004b6565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200020a6200026f60201b60201c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002566200012e60201b60201c565b60405162000265919062000416565b60405180910390a1565b6200027f620002c460201b60201c565b15620002c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002b99062000494565b60405180910390fd5b565b60008060149054906101000a900460ff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200030c82620002df565b9050919050565b60006200032082620002ff565b9050919050565b620003328162000313565b81146200033e57600080fd5b50565b600081519050620003528162000327565b92915050565b6000819050919050565b6200036d8162000358565b81146200037957600080fd5b50565b6000815190506200038d8162000362565b92915050565b60008060008060808587031215620003b057620003af620002da565b5b6000620003c08782880162000341565b9450506020620003d38782880162000341565b9350506040620003e68782880162000341565b9250506060620003f9878288016200037c565b91505092959194509250565b6200041081620002ff565b82525050565b60006020820190506200042d600083018462000405565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006200047c60108362000433565b9150620004898262000444565b602082019050919050565b60006020820190508181036000830152620004af816200046d565b9050919050565b60805160a05160c0516114a1620004fb6000396000818161033201526104380152600081816102e00152610566015260008181610230015261026901526114a16000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638456cb591161008c578063db068e0e11610066578063db068e0e146101a4578063efb65e89146101c0578063f2fde38b146101dc578063f75cec60146101f8576100cf565b80638456cb591461015e5780638da5cb5b14610168578063c86d404014610186576100cf565b80633ba0b9a9146100d45780633f4ba83a146100f25780634ecc6ead146100fc578063535565591461011a5780635c975abb14610136578063715018a614610154575b600080fd5b6100dc610216565b6040516100e99190610be6565b60405180910390f35b6100fa61021c565b005b61010461022e565b6040516101119190610c80565b60405180910390f35b610134600480360381019061012f9190610ccc565b610252565b005b61013e6103d1565b60405161014b9190610d14565b60405180910390f35b61015c6103e7565b005b6101666103fb565b005b61017061040d565b60405161017d9190610d50565b60405180910390f35b61018e610436565b60405161019b9190610c80565b60405180910390f35b6101be60048036038101906101b99190610ccc565b61045a565b005b6101da60048036038101906101d59190610da9565b6104a3565b005b6101f660048036038101906101f19190610e15565b6104e1565b005b610200610564565b60405161020d9190610c80565b60405180910390f35b60015481565b610224610588565b61022c610606565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b61025a610668565b6102ae6102656106b2565b30837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166106ba909392919063ffffffff16565b6000662386f26fc10000600154836102c69190610e71565b6102d09190610ee2565b90506103246102dd6106b2565b837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b61037661032f6106b2565b827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b61037e6106b2565b73ffffffffffffffffffffffffffffffffffffffff167f26981b9aefbb0f732b0264bd34c255e831001eb50b06bc85b32cc39e1438972183836040516103c5929190610f13565b60405180910390a25050565b60008060149054906101000a900460ff16905090565b6103ef610588565b6103f960006107c9565b565b610403610588565b61040b61088d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610462610588565b806001819055507f972aba470577c14606bbf4bbdec1fed4925f242fcef40b4a8d242983365d0291816040516104989190610be6565b60405180910390a150565b6104ab610588565b6104dd6104b661040d565b828473ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b5050565b6104e9610588565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054f90610fbf565b60405180910390fd5b610561816107c9565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6105906106b2565b73ffffffffffffffffffffffffffffffffffffffff166105ae61040d565b73ffffffffffffffffffffffffffffffffffffffff1614610604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fb9061102b565b60405180910390fd5b565b61060e6108f0565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6106516106b2565b60405161065e9190610d50565b60405180910390a1565b6106706103d1565b156106b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a790611097565b60405180910390fd5b565b600033905090565b61073d846323b872dd60e01b8585856040516024016106db939291906110b7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610939565b50505050565b6107c48363a9059cbb60e01b84846040516024016107629291906110ee565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610939565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610895610668565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108d96106b2565b6040516108e69190610d50565b60405180910390a1565b6108f86103d1565b610937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092e90611163565b60405180910390fd5b565b600061099b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a009092919063ffffffff16565b90506000815111156109fb57808060200190518101906109bb91906111af565b6109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f19061124e565b60405180910390fd5b5b505050565b6060610a0f8484600085610a18565b90509392505050565b606082471015610a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a54906112e0565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610a869190611371565b60006040518083038185875af1925050503d8060008114610ac3576040519150601f19603f3d011682016040523d82523d6000602084013e610ac8565b606091505b5091509150610ad987838387610ae5565b92505050949350505050565b60608315610b47576000835103610b3f57610aff85610b5a565b610b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b35906113d4565b60405180910390fd5b5b829050610b52565b610b518383610b7d565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115610b905781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc49190611449565b60405180910390fd5b6000819050919050565b610be081610bcd565b82525050565b6000602082019050610bfb6000830184610bd7565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c46610c41610c3c84610c01565b610c21565b610c01565b9050919050565b6000610c5882610c2b565b9050919050565b6000610c6a82610c4d565b9050919050565b610c7a81610c5f565b82525050565b6000602082019050610c956000830184610c71565b92915050565b600080fd5b610ca981610bcd565b8114610cb457600080fd5b50565b600081359050610cc681610ca0565b92915050565b600060208284031215610ce257610ce1610c9b565b5b6000610cf084828501610cb7565b91505092915050565b60008115159050919050565b610d0e81610cf9565b82525050565b6000602082019050610d296000830184610d05565b92915050565b6000610d3a82610c01565b9050919050565b610d4a81610d2f565b82525050565b6000602082019050610d656000830184610d41565b92915050565b6000610d7682610d2f565b9050919050565b610d8681610d6b565b8114610d9157600080fd5b50565b600081359050610da381610d7d565b92915050565b60008060408385031215610dc057610dbf610c9b565b5b6000610dce85828601610d94565b9250506020610ddf85828601610cb7565b9150509250929050565b610df281610d2f565b8114610dfd57600080fd5b50565b600081359050610e0f81610de9565b92915050565b600060208284031215610e2b57610e2a610c9b565b5b6000610e3984828501610e00565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610e7c82610bcd565b9150610e8783610bcd565b9250828202610e9581610bcd565b91508282048414831517610eac57610eab610e42565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610eed82610bcd565b9150610ef883610bcd565b925082610f0857610f07610eb3565b5b828204905092915050565b6000604082019050610f286000830185610bd7565b610f356020830184610bd7565b9392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610fa9602683610f3c565b9150610fb482610f4d565b604082019050919050565b60006020820190508181036000830152610fd881610f9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611015602083610f3c565b915061102082610fdf565b602082019050919050565b6000602082019050818103600083015261104481611008565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611081601083610f3c565b915061108c8261104b565b602082019050919050565b600060208201905081810360008301526110b081611074565b9050919050565b60006060820190506110cc6000830186610d41565b6110d96020830185610d41565b6110e66040830184610bd7565b949350505050565b60006040820190506111036000830185610d41565b6111106020830184610bd7565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061114d601483610f3c565b915061115882611117565b602082019050919050565b6000602082019050818103600083015261117c81611140565b9050919050565b61118c81610cf9565b811461119757600080fd5b50565b6000815190506111a981611183565b92915050565b6000602082840312156111c5576111c4610c9b565b5b60006111d38482850161119a565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611238602a83610f3c565b9150611243826111dc565b604082019050919050565b600060208201905081810360008301526112678161122b565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006112ca602683610f3c565b91506112d58261126e565b604082019050919050565b600060208201905081810360008301526112f9816112bd565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611334578082015181840152602081019050611319565b60008484015250505050565b600061134b82611300565b611355818561130b565b9350611365818560208601611316565b80840191505092915050565b600061137d8284611340565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006113be601d83610f3c565b91506113c982611388565b602082019050919050565b600060208201905081810360008301526113ed816113b1565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b600061141b826113f4565b6114258185610f3c565b9350611435818560208601611316565b61143e816113ff565b840191505092915050565b600060208201905081810360008301526114638184611410565b90509291505056fea2646970667358221220aee2d78befada09d2df359ab0d02099be89b7291ae705f514627a68f2050e60764736f6c63430008130033000000000000000000000000fa5047c9c78b8877af97bdcb85db743fd7313d4a000000000000000000000000e29c0d68633f3972b78cf69f3733421369ede8ff000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000063604
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638456cb591161008c578063db068e0e11610066578063db068e0e146101a4578063efb65e89146101c0578063f2fde38b146101dc578063f75cec60146101f8576100cf565b80638456cb591461015e5780638da5cb5b14610168578063c86d404014610186576100cf565b80633ba0b9a9146100d45780633f4ba83a146100f25780634ecc6ead146100fc578063535565591461011a5780635c975abb14610136578063715018a614610154575b600080fd5b6100dc610216565b6040516100e99190610be6565b60405180910390f35b6100fa61021c565b005b61010461022e565b6040516101119190610c80565b60405180910390f35b610134600480360381019061012f9190610ccc565b610252565b005b61013e6103d1565b60405161014b9190610d14565b60405180910390f35b61015c6103e7565b005b6101666103fb565b005b61017061040d565b60405161017d9190610d50565b60405180910390f35b61018e610436565b60405161019b9190610c80565b60405180910390f35b6101be60048036038101906101b99190610ccc565b61045a565b005b6101da60048036038101906101d59190610da9565b6104a3565b005b6101f660048036038101906101f19190610e15565b6104e1565b005b610200610564565b60405161020d9190610c80565b60405180910390f35b60015481565b610224610588565b61022c610606565b565b7f000000000000000000000000fa5047c9c78b8877af97bdcb85db743fd7313d4a81565b61025a610668565b6102ae6102656106b2565b30837f000000000000000000000000fa5047c9c78b8877af97bdcb85db743fd7313d4a73ffffffffffffffffffffffffffffffffffffffff166106ba909392919063ffffffff16565b6000662386f26fc10000600154836102c69190610e71565b6102d09190610ee2565b90506103246102dd6106b2565b837f000000000000000000000000e29c0d68633f3972b78cf69f3733421369ede8ff73ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b61037661032f6106b2565b827f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b61037e6106b2565b73ffffffffffffffffffffffffffffffffffffffff167f26981b9aefbb0f732b0264bd34c255e831001eb50b06bc85b32cc39e1438972183836040516103c5929190610f13565b60405180910390a25050565b60008060149054906101000a900460ff16905090565b6103ef610588565b6103f960006107c9565b565b610403610588565b61040b61088d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b610462610588565b806001819055507f972aba470577c14606bbf4bbdec1fed4925f242fcef40b4a8d242983365d0291816040516104989190610be6565b60405180910390a150565b6104ab610588565b6104dd6104b661040d565b828473ffffffffffffffffffffffffffffffffffffffff166107439092919063ffffffff16565b5050565b6104e9610588565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054f90610fbf565b60405180910390fd5b610561816107c9565b50565b7f000000000000000000000000e29c0d68633f3972b78cf69f3733421369ede8ff81565b6105906106b2565b73ffffffffffffffffffffffffffffffffffffffff166105ae61040d565b73ffffffffffffffffffffffffffffffffffffffff1614610604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fb9061102b565b60405180910390fd5b565b61060e6108f0565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6106516106b2565b60405161065e9190610d50565b60405180910390a1565b6106706103d1565b156106b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a790611097565b60405180910390fd5b565b600033905090565b61073d846323b872dd60e01b8585856040516024016106db939291906110b7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610939565b50505050565b6107c48363a9059cbb60e01b84846040516024016107629291906110ee565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610939565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610895610668565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108d96106b2565b6040516108e69190610d50565b60405180910390a1565b6108f86103d1565b610937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092e90611163565b60405180910390fd5b565b600061099b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a009092919063ffffffff16565b90506000815111156109fb57808060200190518101906109bb91906111af565b6109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f19061124e565b60405180910390fd5b5b505050565b6060610a0f8484600085610a18565b90509392505050565b606082471015610a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a54906112e0565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610a869190611371565b60006040518083038185875af1925050503d8060008114610ac3576040519150601f19603f3d011682016040523d82523d6000602084013e610ac8565b606091505b5091509150610ad987838387610ae5565b92505050949350505050565b60608315610b47576000835103610b3f57610aff85610b5a565b610b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b35906113d4565b60405180910390fd5b5b829050610b52565b610b518383610b7d565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115610b905781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc49190611449565b60405180910390fd5b6000819050919050565b610be081610bcd565b82525050565b6000602082019050610bfb6000830184610bd7565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c46610c41610c3c84610c01565b610c21565b610c01565b9050919050565b6000610c5882610c2b565b9050919050565b6000610c6a82610c4d565b9050919050565b610c7a81610c5f565b82525050565b6000602082019050610c956000830184610c71565b92915050565b600080fd5b610ca981610bcd565b8114610cb457600080fd5b50565b600081359050610cc681610ca0565b92915050565b600060208284031215610ce257610ce1610c9b565b5b6000610cf084828501610cb7565b91505092915050565b60008115159050919050565b610d0e81610cf9565b82525050565b6000602082019050610d296000830184610d05565b92915050565b6000610d3a82610c01565b9050919050565b610d4a81610d2f565b82525050565b6000602082019050610d656000830184610d41565b92915050565b6000610d7682610d2f565b9050919050565b610d8681610d6b565b8114610d9157600080fd5b50565b600081359050610da381610d7d565b92915050565b60008060408385031215610dc057610dbf610c9b565b5b6000610dce85828601610d94565b9250506020610ddf85828601610cb7565b9150509250929050565b610df281610d2f565b8114610dfd57600080fd5b50565b600081359050610e0f81610de9565b92915050565b600060208284031215610e2b57610e2a610c9b565b5b6000610e3984828501610e00565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610e7c82610bcd565b9150610e8783610bcd565b9250828202610e9581610bcd565b91508282048414831517610eac57610eab610e42565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610eed82610bcd565b9150610ef883610bcd565b925082610f0857610f07610eb3565b5b828204905092915050565b6000604082019050610f286000830185610bd7565b610f356020830184610bd7565b9392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610fa9602683610f3c565b9150610fb482610f4d565b604082019050919050565b60006020820190508181036000830152610fd881610f9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611015602083610f3c565b915061102082610fdf565b602082019050919050565b6000602082019050818103600083015261104481611008565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611081601083610f3c565b915061108c8261104b565b602082019050919050565b600060208201905081810360008301526110b081611074565b9050919050565b60006060820190506110cc6000830186610d41565b6110d96020830185610d41565b6110e66040830184610bd7565b949350505050565b60006040820190506111036000830185610d41565b6111106020830184610bd7565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061114d601483610f3c565b915061115882611117565b602082019050919050565b6000602082019050818103600083015261117c81611140565b9050919050565b61118c81610cf9565b811461119757600080fd5b50565b6000815190506111a981611183565b92915050565b6000602082840312156111c5576111c4610c9b565b5b60006111d38482850161119a565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611238602a83610f3c565b9150611243826111dc565b604082019050919050565b600060208201905081810360008301526112678161122b565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006112ca602683610f3c565b91506112d58261126e565b604082019050919050565b600060208201905081810360008301526112f9816112bd565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611334578082015181840152602081019050611319565b60008484015250505050565b600061134b82611300565b611355818561130b565b9350611365818560208601611316565b80840191505092915050565b600061137d8284611340565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006113be601d83610f3c565b91506113c982611388565b602082019050919050565b600060208201905081810360008301526113ed816113b1565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b600061141b826113f4565b6114258185610f3c565b9350611435818560208601611316565b61143e816113ff565b840191505092915050565b600060208201905081810360008301526114638184611410565b90509291505056fea2646970667358221220aee2d78befada09d2df359ab0d02099be89b7291ae705f514627a68f2050e60764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fa5047c9c78b8877af97bdcb85db743fd7313d4a000000000000000000000000e29c0d68633f3972b78cf69f3733421369ede8ff000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000063604
-----Decoded View---------------
Arg [0] : _tokenROOK (address): 0xfA5047c9c78B8877af97BDcb85Db743fD7313d4a
Arg [1] : _tokenPROOK (address): 0xe29c0d68633f3972b78cF69F3733421369EDe8fF
Arg [2] : _tokenUSDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : _exchangeRate (uint256): 407044
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000fa5047c9c78b8877af97bdcb85db743fd7313d4a
Arg [1] : 000000000000000000000000e29c0d68633f3972b78cf69f3733421369ede8ff
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 0000000000000000000000000000000000000000000000000000000000063604
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.