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 141 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exchange Cash | 12119594 | 1401 days ago | IN | 0 ETH | 0.00202852 | ||||
Exchange Cash | 12119587 | 1401 days ago | IN | 0 ETH | 0.00202852 | ||||
Exchange Cash | 11980323 | 1423 days ago | IN | 0 ETH | 0.01594086 | ||||
Exchange Cash | 11980130 | 1423 days ago | IN | 0 ETH | 0.0164343 | ||||
Exchange Cash | 11979894 | 1423 days ago | IN | 0 ETH | 0.01945283 | ||||
Exchange Cash | 11979768 | 1423 days ago | IN | 0 ETH | 0.01478601 | ||||
Exchange Cash | 11979615 | 1423 days ago | IN | 0 ETH | 0.01697653 | ||||
Exchange Cash | 11979587 | 1423 days ago | IN | 0 ETH | 0.0186789 | ||||
Exchange Cash | 11979444 | 1423 days ago | IN | 0 ETH | 0.0186807 | ||||
Exchange Cash | 11979416 | 1423 days ago | IN | 0 ETH | 0.01394825 | ||||
Exchange Cash | 11979147 | 1423 days ago | IN | 0 ETH | 0.01593932 | ||||
Exchange Cash | 11979090 | 1423 days ago | IN | 0 ETH | 0.01743532 | ||||
Exchange Cash | 11978749 | 1423 days ago | IN | 0 ETH | 0.03612045 | ||||
Exchange Cash | 11978283 | 1423 days ago | IN | 0 ETH | 0.0151951 | ||||
Exchange Cash | 11977834 | 1423 days ago | IN | 0 ETH | 0.00958365 | ||||
Exchange Cash | 11976820 | 1423 days ago | IN | 0 ETH | 0.00883602 | ||||
Exchange Cash | 11976523 | 1423 days ago | IN | 0 ETH | 0.00995894 | ||||
Exchange Cash | 11975978 | 1423 days ago | IN | 0 ETH | 0.00995608 | ||||
Exchange Cash | 11975734 | 1423 days ago | IN | 0 ETH | 0.01792094 | ||||
Exchange Cash | 11975288 | 1423 days ago | IN | 0 ETH | 0.01469766 | ||||
Exchange Cash | 11975263 | 1423 days ago | IN | 0 ETH | 0.01736258 | ||||
Exchange Cash | 11974904 | 1423 days ago | IN | 0 ETH | 0.01008053 | ||||
Exchange Cash | 11974608 | 1423 days ago | IN | 0 ETH | 0.0097225 | ||||
Exchange Cash | 11974238 | 1423 days ago | IN | 0 ETH | 0.01057833 | ||||
Exchange Cash | 11974032 | 1423 days ago | IN | 0 ETH | 0.01095274 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CashExchange
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-26 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.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); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @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 in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/interfaces/IOracle.sol pragma solidity ^0.6.0; interface IOracle { function update() external; function consult(address token, uint256 amountIn) external view returns (uint256 amountOut); // function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestamp); } // File: contracts/utils/ContractGuard.sol pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { return _status[block.number][tx.origin]; } function checkSameSenderReentranted() internal view returns (bool) { return _status[block.number][msg.sender]; } modifier onlyOneBlock() { require( !checkSameOriginReentranted(), 'ContractGuard: one block, one function' ); require( !checkSameSenderReentranted(), 'ContractGuard: one block, one function' ); _; _status[block.number][tx.origin] = true; _status[block.number][msg.sender] = true; } } // File: contracts/CashExchange.sol pragma solidity ^0.6.0; contract CashExchange is ContractGuard { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; /* ========== STATE VARIABLES ========== */ // ========== CORE uint256 public endTime; address public cash_old; address public cash_new; address public cashOracle; /* ========== CONSTRUCTOR ========== */ constructor( address _cash_old, address _cash_new, address _cashOracle, uint256 _endTime ) public { cash_old = _cash_old; cash_new = _cash_new; cashOracle = _cashOracle; endTime = _endTime; } /* ========== VIEW FUNCTIONS ========== */ // oracle function getOraclePrice() public view returns (uint256) { return IOracle(cashOracle).consult(cash_old, 1e18); } /* ========== MUTABLE FUNCTIONS ========== */ function _updateCashPrice() internal { try IOracle(cashOracle).update() {} catch {} } function exchangeCash(uint256 amount) external onlyOneBlock { require(block.timestamp <= endTime, 'CashExchange: redemption period ended'); require(amount > 0, 'CashExchange: cannot exchange zero amount'); uint256 cashPrice = getOraclePrice(); //Note: Given that we want to force the starting point to be $1, if cash is > $1 (probably due to low liquidity), redeem it as $1 if (cashPrice > 1000000) { cashPrice = 1000000; } require( IERC20(cash_new).balanceOf(address(this)) >= amount, 'CashExchange: CashExchange has no more budget' ); IERC20(cash_old).safeTransferFrom(msg.sender, address(this), amount); IERC20(cash_new).safeTransfer(msg.sender, amount.mul(cashPrice).div(1000000)); _updateCashPrice(); emit ExchangedCash(msg.sender, amount); } // CORE event ExchangedCash(address indexed from, uint256 amount); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_cash_old","type":"address"},{"internalType":"address","name":"_cash_new","type":"address"},{"internalType":"address","name":"_cashOracle","type":"address"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExchangedCash","type":"event"},{"inputs":[],"name":"cashOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cash_new","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cash_old","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"exchangeCash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOraclePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610ac4380380610ac48339818101604052608081101561003357600080fd5b50805160208201516040830151606090930151600280546001600160a01b03199081166001600160a01b0395861617909155600380548216938516939093179092556004805490921692909316919091179055600155610a2c806100986000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063166621cc146100675780633197cbb61461008b57806362259245146100a5578063796da7af146100c4578063b456cf19146100cc578063e7a4e8a6146100d4575b600080fd5b61006f6100dc565b604080516001600160a01b039092168252519081900360200190f35b6100936100eb565b60408051918252519081900360200190f35b6100c2600480360360208110156100bb57600080fd5b50356100f1565b005b61009361038a565b61006f61041f565b61006f61042e565b6003546001600160a01b031681565b60015481565b6100f961043d565b156101355760405162461bcd60e51b81526004018080602001828103825260268152602001806109d16026913960400191505060405180910390fd5b61013d61045c565b156101795760405162461bcd60e51b81526004018080602001828103825260268152602001806109d16026913960400191505060405180910390fd5b6001544211156101ba5760405162461bcd60e51b815260040180806020018281038252602581526020018061090b6025913960400191505060405180910390fd5b600081116101f95760405162461bcd60e51b81526004018080602001828103825260298152602001806109306029913960400191505060405180910390fd5b600061020361038a565b9050620f42408111156102165750620f42405b600354604080516370a0823160e01b8152306004820152905184926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561026057600080fd5b505afa158015610274573d6000803e3d6000fd5b505050506040513d602081101561028a57600080fd5b505110156102c95760405162461bcd60e51b815260040180806020018281038252602d81526020018061097a602d913960400191505060405180910390fd5b6002546102e1906001600160a01b031633308561047b565b61030f336102fc620f42406102f686866104db565b9061053d565b6003546001600160a01b0316919061057f565b6103176105d6565b60408051838152905133917f9138cb6c3d9c20eb1fd8bd87bb9f3c3412afea7ee1c93fc805844087d52172a0919081900360200190a25050436000908152602081815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6004805460025460408051633ddac95360e01b81526001600160a01b0392831694810194909452670de0b6b3a76400006024850152516000939190921691633ddac95391604480820192602092909190829003018186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d602081101561041857600080fd5b5051905090565b6002546001600160a01b031681565b6004546001600160a01b031681565b4360009081526020818152604080832032845290915290205460ff1690565b4360009081526020818152604080832033845290915290205460ff1690565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526104d590859061062d565b50505050565b6000826104ea57506000610537565b828202828482816104f757fe5b04146105345760405162461bcd60e51b81526004018080602001828103825260218152602001806109596021913960400191505060405180910390fd5b90505b92915050565b600061053483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506106de565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105d190849061062d565b505050565b600480546040805163a2e6204560e01b815290516001600160a01b039092169263a2e6204592828201926000929082900301818387803b15801561061957600080fd5b505af192505050801561062a575060015b50565b6060610682826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107809092919063ffffffff16565b8051909150156105d1578080602001905160208110156106a157600080fd5b50516105d15760405162461bcd60e51b815260040180806020018281038252602a8152602001806109a7602a913960400191505060405180910390fd5b6000818361076a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561072f578181015183820152602001610717565b50505050905090810190601f16801561075c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161077657fe5b0495945050505050565b606061078f8484600085610797565b949350505050565b60606107a285610904565b6107f3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108325780518252601f199092019160209182019101610813565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610894576040519150601f19603f3d011682016040523d82523d6000602084013e610899565b606091505b509150915081156108ad57915061078f9050565b8051156108bd5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561072f578181015183820152602001610717565b3b15159056fe4361736845786368616e67653a20726564656d7074696f6e20706572696f6420656e6465644361736845786368616e67653a2063616e6e6f742065786368616e6765207a65726f20616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774361736845786368616e67653a204361736845786368616e676520686173206e6f206d6f7265206275646765745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6ea2646970667358221220327a0288b9352a24f9082980e5c42f6b56f0eb46b30d3e7d761503bb258be59b64736f6c634300060c0033000000000000000000000000368b3a58b5f49392e5c9e4c998cb0bb966752e51000000000000000000000000eed0c8d2da6d243329a6f4a8c2ac61a59ecbfa020000000000000000000000009ef5fec8eebe50f3c8858037a74e96ed1e9d28e60000000000000000000000000000000000000000000000000000000060428dc0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063166621cc146100675780633197cbb61461008b57806362259245146100a5578063796da7af146100c4578063b456cf19146100cc578063e7a4e8a6146100d4575b600080fd5b61006f6100dc565b604080516001600160a01b039092168252519081900360200190f35b6100936100eb565b60408051918252519081900360200190f35b6100c2600480360360208110156100bb57600080fd5b50356100f1565b005b61009361038a565b61006f61041f565b61006f61042e565b6003546001600160a01b031681565b60015481565b6100f961043d565b156101355760405162461bcd60e51b81526004018080602001828103825260268152602001806109d16026913960400191505060405180910390fd5b61013d61045c565b156101795760405162461bcd60e51b81526004018080602001828103825260268152602001806109d16026913960400191505060405180910390fd5b6001544211156101ba5760405162461bcd60e51b815260040180806020018281038252602581526020018061090b6025913960400191505060405180910390fd5b600081116101f95760405162461bcd60e51b81526004018080602001828103825260298152602001806109306029913960400191505060405180910390fd5b600061020361038a565b9050620f42408111156102165750620f42405b600354604080516370a0823160e01b8152306004820152905184926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561026057600080fd5b505afa158015610274573d6000803e3d6000fd5b505050506040513d602081101561028a57600080fd5b505110156102c95760405162461bcd60e51b815260040180806020018281038252602d81526020018061097a602d913960400191505060405180910390fd5b6002546102e1906001600160a01b031633308561047b565b61030f336102fc620f42406102f686866104db565b9061053d565b6003546001600160a01b0316919061057f565b6103176105d6565b60408051838152905133917f9138cb6c3d9c20eb1fd8bd87bb9f3c3412afea7ee1c93fc805844087d52172a0919081900360200190a25050436000908152602081815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6004805460025460408051633ddac95360e01b81526001600160a01b0392831694810194909452670de0b6b3a76400006024850152516000939190921691633ddac95391604480820192602092909190829003018186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d602081101561041857600080fd5b5051905090565b6002546001600160a01b031681565b6004546001600160a01b031681565b4360009081526020818152604080832032845290915290205460ff1690565b4360009081526020818152604080832033845290915290205460ff1690565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526104d590859061062d565b50505050565b6000826104ea57506000610537565b828202828482816104f757fe5b04146105345760405162461bcd60e51b81526004018080602001828103825260218152602001806109596021913960400191505060405180910390fd5b90505b92915050565b600061053483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506106de565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105d190849061062d565b505050565b600480546040805163a2e6204560e01b815290516001600160a01b039092169263a2e6204592828201926000929082900301818387803b15801561061957600080fd5b505af192505050801561062a575060015b50565b6060610682826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107809092919063ffffffff16565b8051909150156105d1578080602001905160208110156106a157600080fd5b50516105d15760405162461bcd60e51b815260040180806020018281038252602a8152602001806109a7602a913960400191505060405180910390fd5b6000818361076a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561072f578181015183820152602001610717565b50505050905090810190601f16801561075c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161077657fe5b0495945050505050565b606061078f8484600085610797565b949350505050565b60606107a285610904565b6107f3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108325780518252601f199092019160209182019101610813565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610894576040519150601f19603f3d011682016040523d82523d6000602084013e610899565b606091505b509150915081156108ad57915061078f9050565b8051156108bd5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561072f578181015183820152602001610717565b3b15159056fe4361736845786368616e67653a20726564656d7074696f6e20706572696f6420656e6465644361736845786368616e67653a2063616e6e6f742065786368616e6765207a65726f20616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774361736845786368616e67653a204361736845786368616e676520686173206e6f206d6f7265206275646765745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6ea2646970667358221220327a0288b9352a24f9082980e5c42f6b56f0eb46b30d3e7d761503bb258be59b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000368b3a58b5f49392e5c9e4c998cb0bb966752e51000000000000000000000000eed0c8d2da6d243329a6f4a8c2ac61a59ecbfa020000000000000000000000009ef5fec8eebe50f3c8858037a74e96ed1e9d28e60000000000000000000000000000000000000000000000000000000060428dc0
-----Decoded View---------------
Arg [0] : _cash_old (address): 0x368B3a58B5f49392e5C9E4C998cb0bB966752E51
Arg [1] : _cash_new (address): 0xEEd0c8d2DA6d243329a6F4A8C2aC61A59ecBFa02
Arg [2] : _cashOracle (address): 0x9EF5FeC8eEBE50F3C8858037a74e96ed1E9D28E6
Arg [3] : _endTime (uint256): 1614974400
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000368b3a58b5f49392e5c9e4c998cb0bb966752e51
Arg [1] : 000000000000000000000000eed0c8d2da6d243329a6f4a8c2ac61a59ecbfa02
Arg [2] : 0000000000000000000000009ef5fec8eebe50f3c8858037a74e96ed1e9d28e6
Arg [3] : 0000000000000000000000000000000000000000000000000000000060428dc0
Deployed Bytecode Sourcemap
19248:2051:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19534:23;;;:::i;:::-;;;;-1:-1:-1;;;;;19534:23:0;;;;;;;;;;;;;;19473:22;;;:::i;:::-;;;;;;;;;;;;;;;;20287:930;;;;;;;;;;;;;;;;-1:-1:-1;20287:930:0;;:::i;:::-;;19993:125;;;:::i;19504:23::-;;;:::i;19566:25::-;;;:::i;19534:23::-;;;-1:-1:-1;;;;;19534:23:0;;:::o;19473:22::-;;;;:::o;20287:930::-;18820:28;:26;:28::i;:::-;18819:29;18797:117;;;;-1:-1:-1;;;18797:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18948:28;:26;:28::i;:::-;18947:29;18925:117;;;;-1:-1:-1;;;18925:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20408:7:::1;;20389:15;:26;;20381:76;;;;-1:-1:-1::0;;;20381:76:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20485:1;20476:6;:10;20468:64;;;;-1:-1:-1::0;;;20468:64:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20545:17;20565:16;:14;:16::i;:::-;20545:36;;20747:7;20735:9;:19;20731:71;;;-1:-1:-1::0;20783:7:0::1;20731:71;20843:8;::::0;20836:41:::1;::::0;;-1:-1:-1;;;20836:41:0;;20871:4:::1;20836:41;::::0;::::1;::::0;;;20881:6;;-1:-1:-1;;;;;20843:8:0::1;::::0;20836:26:::1;::::0;:41;;;;;::::1;::::0;;;;;;;;20843:8;20836:41;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;20836:41:0;:51:::1;;20814:146;;;;-1:-1:-1::0;;;20814:146:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20980:8;::::0;20973:68:::1;::::0;-1:-1:-1;;;;;20980:8:0::1;21007:10;21027:4;21034:6:::0;20973:33:::1;:68::i;:::-;21052:77;21082:10;21094:34;21120:7;21094:21;:6:::0;21105:9;21094:10:::1;:21::i;:::-;:25:::0;::::1;:34::i;:::-;21059:8;::::0;-1:-1:-1;;;;;21059:8:0::1;::::0;21052:77;:29:::1;:77::i;:::-;21140:18;:16;:18::i;:::-;21176:33;::::0;;;;;;;21190:10:::1;::::0;21176:33:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;19077:12:0;19069:7;:21;;;;;;;;;;;19091:9;19069:32;;;;;;;;:39;;19104:4;-1:-1:-1;;19069:39:0;;;;;;;;19141:10;19119:33;;;;;;:40;;;;;;;;;;20287:930::o;19993:125::-;20075:10;;;20095:8;;20067:43;;;-1:-1:-1;;;20067:43:0;;-1:-1:-1;;;;;20095:8:0;;;20067:43;;;;;;;20105:4;20067:43;;;;;20040:7;;20075:10;;;;;20067:27;;:43;;;;;;;;;;;;;;;20075:10;20067:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20067:43:0;;-1:-1:-1;19993:125:0;:::o;19504:23::-;;;-1:-1:-1;;;;;19504:23:0;;:::o;19566:25::-;;;-1:-1:-1;;;;;19566:25:0;;:::o;18495:125::-;18588:12;18556:4;18580:21;;;;;;;;;;;18602:9;18580:32;;;;;;;;;;18495:125;:::o;18628:126::-;18721:12;18689:4;18713:21;;;;;;;;;;;18735:10;18713:33;;;;;;;;;;18628:126;:::o;15062:205::-;15190:68;;;-1:-1:-1;;;;;15190:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15190:68:0;-1:-1:-1;;;15190:68:0;;;15163:96;;15183:5;;15163:19;:96::i;:::-;15062:205;;;;:::o;5074:471::-;5132:7;5377:6;5373:47;;-1:-1:-1;5407:1:0;5400:8;;5373:47;5444:5;;;5448:1;5444;:5;:1;5468:5;;;;;:10;5460:56;;;;-1:-1:-1;;;5460:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5536:1;-1:-1:-1;5074:471:0;;;;;:::o;6021:132::-;6079:7;6106:39;6110:1;6113;6106:39;;;;;;;;;;;;;;;;;:3;:39::i;14877:177::-;14987:58;;;-1:-1:-1;;;;;14987:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14987:58:0;-1:-1:-1;;;14987:58:0;;;14960:86;;14980:5;;14960:19;:86::i;:::-;14877:177;;;:::o;20179:100::-;20239:10;;;20231:28;;;-1:-1:-1;;;20231:28:0;;;;-1:-1:-1;;;;;20239:10:0;;;;20231:26;;:28;;;;20239:10;;20231:28;;;;;;20239:10;;20231:28;;;;;;;;;;;;;;;;;;;;;;;;;20227:45;20179:100::o;17182:761::-;17606:23;17632:69;17660:4;17632:69;;;;;;;;;;;;;;;;;17640:5;-1:-1:-1;;;;;17632:27:0;;;:69;;;;;:::i;:::-;17716:17;;17606:95;;-1:-1:-1;17716:21:0;17712:224;;17858:10;17847:30;;;;;;;;;;;;;;;-1:-1:-1;17847:30:0;17839:85;;;;-1:-1:-1;;;17839:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6649:278;6735:7;6770:12;6763:5;6755:28;;;;-1:-1:-1;;;6755:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6794:9;6810:1;6806;:5;;;;;;;6649:278;-1:-1:-1;;;;;6649:278:0:o;11860:196::-;11963:12;11995:53;12018:6;12026:4;12032:1;12035:12;11995:22;:53::i;:::-;11988:60;11860:196;-1:-1:-1;;;;11860:196:0:o;13237:979::-;13367:12;13400:18;13411:6;13400:10;:18::i;:::-;13392:60;;;;;-1:-1:-1;;;13392:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13526:12;13540:23;13567:6;-1:-1:-1;;;;;13567:11:0;13587:8;13598:4;13567:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13567:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13525:78;;;;13618:7;13614:595;;;13649:10;-1:-1:-1;13642:17:0;;-1:-1:-1;13642:17:0;13614:595;13763:17;;:21;13759:439;;14026:10;14020:17;14087:15;14074:10;14070:2;14066:19;14059:44;13974:148;14162:20;;-1:-1:-1;;;14162:20:0;;;;;;;;;;;;;;;;;14169:12;;14162:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8942:422;9309:20;9348:8;;;8942:422::o
Swarm Source
ipfs://327a0288b9352a24f9082980e5c42f6b56f0eb46b30d3e7d761503bb258be59b
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.