Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multi Chain
Multichain Addresses
N/ALatest 25 from a total of 26 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Cash Cheque Bene... | 4992712 | 894 days 7 hrs ago | IN | 0 ETH | 0.01545901 | ||||
Cash Cheque Bene... | 4957482 | 900 days 10 hrs ago | IN | 0 ETH | 0.00519264 | ||||
Cash Cheque Bene... | 4955985 | 900 days 16 hrs ago | IN | 0 ETH | 0.043278 | ||||
Cash Cheque Bene... | 4933201 | 904 days 18 hrs ago | IN | 0 ETH | 0.05338064 | ||||
Cash Cheque Bene... | 4928374 | 905 days 14 hrs ago | IN | 0 ETH | 0.042038 | ||||
Cash Cheque Bene... | 4917643 | 907 days 11 hrs ago | IN | 0 ETH | 0.0692512 | ||||
Cash Cheque Bene... | 4902384 | 910 days 3 hrs ago | IN | 0 ETH | 0.01861561 | ||||
Cash Cheque Bene... | 4900732 | 910 days 10 hrs ago | IN | 0 ETH | 0.043272 | ||||
Cash Cheque Bene... | 4868663 | 916 days 17 mins ago | IN | 0 ETH | 0.00018592 | ||||
Cash Cheque Bene... | 4725647 | 940 days 22 hrs ago | IN | 0 ETH | 0.00023315 | ||||
Cash Cheque Bene... | 4725641 | 940 days 22 hrs ago | IN | 0 ETH | 0.00023315 | ||||
Cash Cheque Bene... | 4660767 | 952 days 5 hrs ago | IN | 0 ETH | 0.00023315 | ||||
Cash Cheque Bene... | 4626213 | 958 days 5 hrs ago | IN | 0 ETH | 0.00014083 | ||||
Cash Cheque Bene... | 4625634 | 958 days 7 hrs ago | IN | 0 ETH | 0.00006947 | ||||
Cash Cheque Bene... | 4625429 | 958 days 8 hrs ago | IN | 0 ETH | 0.00015732 | ||||
Cash Cheque Bene... | 4624675 | 958 days 11 hrs ago | IN | 0 ETH | 0.00015284 | ||||
Cash Cheque Bene... | 4623955 | 958 days 14 hrs ago | IN | 0 ETH | 0.0002779 | ||||
Cash Cheque Bene... | 4623338 | 958 days 17 hrs ago | IN | 0 ETH | 0.00027787 | ||||
Cash Cheque Bene... | 4623235 | 958 days 17 hrs ago | IN | 0 ETH | 0.00027782 | ||||
Cash Cheque Bene... | 4622755 | 958 days 19 hrs ago | IN | 0 ETH | 0.0002779 | ||||
Cash Cheque Bene... | 4621316 | 959 days 1 hr ago | IN | 0 ETH | 0.00035075 | ||||
Cash Cheque Bene... | 4619639 | 959 days 8 hrs ago | IN | 0 ETH | 0.00010589 | ||||
Cash Cheque Bene... | 4617581 | 959 days 17 hrs ago | IN | 0 ETH | 0.00017316 | ||||
Cash Cheque Bene... | 4616040 | 959 days 23 hrs ago | IN | 0 ETH | 0.00017311 | ||||
Cash Cheque Bene... | 4499091 | 980 days 7 hrs ago | IN | 0 ETH | 0.00008655 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
4992712 | 894 days 7 hrs ago | 0 ETH | ||||
4992712 | 894 days 7 hrs ago | 0 ETH | ||||
4957482 | 900 days 10 hrs ago | 0 ETH | ||||
4957482 | 900 days 10 hrs ago | 0 ETH | ||||
4955985 | 900 days 16 hrs ago | 0 ETH | ||||
4955985 | 900 days 16 hrs ago | 0 ETH | ||||
4933201 | 904 days 18 hrs ago | 0 ETH | ||||
4933201 | 904 days 18 hrs ago | 0 ETH | ||||
4928374 | 905 days 14 hrs ago | 0 ETH | ||||
4928374 | 905 days 14 hrs ago | 0 ETH | ||||
4917643 | 907 days 11 hrs ago | 0 ETH | ||||
4917643 | 907 days 11 hrs ago | 0 ETH | ||||
4902384 | 910 days 3 hrs ago | 0 ETH | ||||
4902384 | 910 days 3 hrs ago | 0 ETH | ||||
4900732 | 910 days 10 hrs ago | 0 ETH | ||||
4900732 | 910 days 10 hrs ago | 0 ETH | ||||
4868663 | 916 days 17 mins ago | 0 ETH | ||||
4868663 | 916 days 17 mins ago | 0 ETH | ||||
4725647 | 940 days 22 hrs ago | 0 ETH | ||||
4725647 | 940 days 22 hrs ago | 0 ETH | ||||
4725641 | 940 days 22 hrs ago | 0 ETH | ||||
4725641 | 940 days 22 hrs ago | 0 ETH | ||||
4660767 | 952 days 5 hrs ago | 0 ETH | ||||
4660767 | 952 days 5 hrs ago | 0 ETH | ||||
4626213 | 958 days 5 hrs ago | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xBD2524...22Ac6e74 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ERC20SimpleSwap
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-18 */ /** *Submitted for verification at Etherscan.io on 2020-09-25 */ // SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.6.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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @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); } /** * @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; } } /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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); } } } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { revert("ECDSA: invalid signature 's' value"); } if (v != 27 && v != 28) { revert("ECDSA: invalid signature 'v' value"); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } } /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } /** @title Chequebook contract without waivers @author The Swarm Authors @notice The chequebook contract allows the issuer of the chequebook to send cheques to an unlimited amount of counterparties. Furthermore, solvency can be guaranteed via hardDeposits @dev as an issuer, no cheques should be send if the cumulative worth of a cheques send is above the cumulative worth of all deposits as a beneficiary, we should always take into account the possibility that a cheque bounces (when no hardDeposits are assigned) */ contract ERC20SimpleSwap { using SafeMath for uint; event ChequeCashed( address indexed beneficiary, address indexed recipient, address indexed caller, uint totalPayout, uint cumulativePayout, uint callerPayout ); event ChequeBounced(); event HardDepositAmountChanged(address indexed beneficiary, uint amount); event HardDepositDecreasePrepared(address indexed beneficiary, uint decreaseAmount); event HardDepositTimeoutChanged(address indexed beneficiary, uint timeout); event Withdraw(uint amount); uint public defaultHardDepositTimeout; /* structure to keep track of the hard deposits (on-chain guarantee of solvency) per beneficiary*/ struct HardDeposit { uint amount; /* hard deposit amount allocated */ uint decreaseAmount; /* decreaseAmount substranced from amount when decrease is requested */ uint timeout; /* issuer has to wait timeout seconds to decrease hardDeposit, 0 implies applying defaultHardDepositTimeout */ uint canBeDecreasedAt; /* point in time after which harddeposit can be decreased*/ } struct EIP712Domain { string name; string version; uint256 chainId; } bytes32 public constant EIP712DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId)" ); bytes32 public constant CHEQUE_TYPEHASH = keccak256( "Cheque(address chequebook,address beneficiary,uint256 cumulativePayout)" ); bytes32 public constant CASHOUT_TYPEHASH = keccak256( "Cashout(address chequebook,address sender,uint256 requestPayout,address recipient,uint256 callerPayout)" ); bytes32 public constant CUSTOMDECREASETIMEOUT_TYPEHASH = keccak256( "CustomDecreaseTimeout(address chequebook,address beneficiary,uint256 decreaseTimeout)" ); // the EIP712 domain this contract uses function domain() internal pure returns (EIP712Domain memory) { uint256 chainId; assembly { chainId := chainid() } return EIP712Domain({ name: "Chequebook", version: "1.0", chainId: chainId }); } // compute the EIP712 domain separator. this cannot be constant because it depends on chainId function domainSeparator(EIP712Domain memory eip712Domain) internal pure returns (bytes32) { return keccak256(abi.encode( EIP712DOMAIN_TYPEHASH, keccak256(bytes(eip712Domain.name)), keccak256(bytes(eip712Domain.version)), eip712Domain.chainId )); } // recover a signature with the EIP712 signing scheme function recoverEIP712(bytes32 hash, bytes memory sig) internal pure returns (address) { bytes32 digest = keccak256(abi.encodePacked( "\x19\x01", domainSeparator(domain()), hash )); return ECDSA.recover(digest, sig); } /* The token against which this chequebook writes cheques */ ERC20 public token; /* associates every beneficiary with how much has been paid out to them */ mapping (address => uint) public paidOut; /* total amount paid out */ uint public totalPaidOut; /* associates every beneficiary with their HardDeposit */ mapping (address => HardDeposit) public hardDeposits; /* sum of all hard deposits */ uint public totalHardDeposit; /* issuer of the contract, set at construction */ address public issuer; /* indicates wether a cheque bounced in the past */ bool public bounced; /** @notice sets the issuer, defaultHardDepositTimeout and receives an initial deposit @param _issuer the issuer of cheques from this chequebook (needed as an argument for "Setting up a chequebook as a payment"). _issuer must be an Externally Owned Account, or it must support calling the function cashCheque @param _defaultHardDepositTimeout duration in seconds which by default will be used to reduce hardDeposit allocations */ constructor(address _issuer, address _token, uint _defaultHardDepositTimeout) public { issuer = _issuer; token = ERC20(_token); defaultHardDepositTimeout = _defaultHardDepositTimeout; } /// @return the balance of the chequebook function balance() public view returns(uint) { return token.balanceOf(address(this)); } /// @return the part of the balance that is not covered by hard deposits function liquidBalance() public view returns(uint) { return balance().sub(totalHardDeposit); } /// @return the part of the balance available for a specific beneficiary function liquidBalanceFor(address beneficiary) public view returns(uint) { return liquidBalance().add(hardDeposits[beneficiary].amount); } /** @dev internal function responsible for checking the issuerSignature, updating hardDeposit balances and doing transfers. Called by cashCheque and cashChequeBeneficary @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout @param cumulativePayout cumulative amount of cheques assigned to beneficiary @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary */ function _cashChequeInternal( address beneficiary, address recipient, uint cumulativePayout, uint callerPayout, bytes memory issuerSig ) internal { /* The issuer must have given explicit approval to the cumulativePayout, either by being the caller or by signature*/ if (msg.sender != issuer) { require(issuer == recoverEIP712(chequeHash(address(this), beneficiary, cumulativePayout), issuerSig), "SimpleSwap: invalid issuer signature"); } /* the requestPayout is the amount requested for payment processing */ uint requestPayout = cumulativePayout.sub(paidOut[beneficiary]); /* calculates acutal payout */ uint totalPayout = Math.min(requestPayout, liquidBalanceFor(beneficiary)); /* calculates hard-deposit usage */ uint hardDepositUsage = Math.min(totalPayout, hardDeposits[beneficiary].amount); require(totalPayout >= callerPayout, "SimpleSwap: cannot pay caller"); /* if there are some of the hard deposit used, update hardDeposits*/ if (hardDepositUsage != 0) { hardDeposits[beneficiary].amount = hardDeposits[beneficiary].amount.sub(hardDepositUsage); totalHardDeposit = totalHardDeposit.sub(hardDepositUsage); } /* increase the stored paidOut amount to avoid double payout */ paidOut[beneficiary] = paidOut[beneficiary].add(totalPayout); totalPaidOut = totalPaidOut.add(totalPayout); /* do the actual payments */ require(token.transfer(recipient, totalPayout.sub(callerPayout)), "SimpleSwap: SimpleSwap: transfer failed"); /* do a transfer to the caller if specified*/ if (callerPayout != 0) { require(token.transfer(msg.sender, callerPayout), "SimpleSwap: SimpleSwap: transfer failed"); } emit ChequeCashed(beneficiary, recipient, msg.sender, totalPayout, cumulativePayout, callerPayout); /* let the world know that the issuer has over-promised on outstanding cheques */ if (requestPayout != totalPayout) { bounced = true; emit ChequeBounced(); } } /** @notice cash a cheque of the beneficiary by a non-beneficiary and reward the sender for doing so with callerPayout @dev a beneficiary must be able to generate signatures (be an Externally Owned Account) to make use of this feature @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout @param cumulativePayout cumulative amount of cheques assigned to beneficiary @param beneficiarySig beneficiary must have given explicit approval for cashing out the cumulativePayout by the sender and sending the callerPayout @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary @param callerPayout when beneficiary does not have ether yet, he can incentivize other people to cash cheques with help of callerPayout @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary */ function cashCheque( address beneficiary, address recipient, uint cumulativePayout, bytes memory beneficiarySig, uint256 callerPayout, bytes memory issuerSig ) public { require( beneficiary == recoverEIP712( cashOutHash( address(this), msg.sender, cumulativePayout, recipient, callerPayout ), beneficiarySig ), "SimpleSwap: invalid beneficiary signature"); _cashChequeInternal(beneficiary, recipient, cumulativePayout, callerPayout, issuerSig); } /** @notice cash a cheque as beneficiary @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout @param cumulativePayout amount requested to pay out @param issuerSig issuer must have given explicit approval on the cumulativePayout to the beneficiary */ function cashChequeBeneficiary(address recipient, uint cumulativePayout, bytes memory issuerSig) public { _cashChequeInternal(msg.sender, recipient, cumulativePayout, 0, issuerSig); } /** @notice prepare to decrease the hard deposit @dev decreasing hardDeposits must be done in two steps to allow beneficiaries to cash any uncashed cheques (and make use of the assgined hard-deposits) @param beneficiary beneficiary whose hard deposit should be decreased @param decreaseAmount amount that the deposit is supposed to be decreased by */ function prepareDecreaseHardDeposit(address beneficiary, uint decreaseAmount) public { require(msg.sender == issuer, "SimpleSwap: not issuer"); HardDeposit storage hardDeposit = hardDeposits[beneficiary]; /* cannot decrease it by more than the deposit */ require(decreaseAmount <= hardDeposit.amount, "SimpleSwap: hard deposit not sufficient"); // if hardDeposit.timeout was never set, apply defaultHardDepositTimeout uint timeout = hardDeposit.timeout == 0 ? defaultHardDepositTimeout : hardDeposit.timeout; hardDeposit.canBeDecreasedAt = now + timeout; hardDeposit.decreaseAmount = decreaseAmount; emit HardDepositDecreasePrepared(beneficiary, decreaseAmount); } /** @notice decrease the hard deposit after waiting the necesary amount of time since prepareDecreaseHardDeposit was called @param beneficiary beneficiary whose hard deposit should be decreased */ function decreaseHardDeposit(address beneficiary) public { HardDeposit storage hardDeposit = hardDeposits[beneficiary]; require(now >= hardDeposit.canBeDecreasedAt && hardDeposit.canBeDecreasedAt != 0, "SimpleSwap: deposit not yet timed out"); /* this throws if decreaseAmount > amount */ //TODO: if there is a cash-out in between prepareDecreaseHardDeposit and decreaseHardDeposit, decreaseHardDeposit will throw and reducing hard-deposits is impossible. hardDeposit.amount = hardDeposit.amount.sub(hardDeposit.decreaseAmount); /* reset the canBeDecreasedAt to avoid a double decrease */ hardDeposit.canBeDecreasedAt = 0; /* keep totalDeposit in sync */ totalHardDeposit = totalHardDeposit.sub(hardDeposit.decreaseAmount); emit HardDepositAmountChanged(beneficiary, hardDeposit.amount); } /** @notice increase the hard deposit @param beneficiary beneficiary whose hard deposit should be decreased @param amount the new hard deposit */ function increaseHardDeposit(address beneficiary, uint amount) public { require(msg.sender == issuer, "SimpleSwap: not issuer"); /* ensure hard deposits don't exceed the global balance */ require(totalHardDeposit.add(amount) <= balance(), "SimpleSwap: hard deposit cannot be more than balance"); HardDeposit storage hardDeposit = hardDeposits[beneficiary]; hardDeposit.amount = hardDeposit.amount.add(amount); // we don't explicitely set hardDepositTimout, as zero means using defaultHardDepositTimeout totalHardDeposit = totalHardDeposit.add(amount); /* disable any pending decrease */ hardDeposit.canBeDecreasedAt = 0; emit HardDepositAmountChanged(beneficiary, hardDeposit.amount); } /** @notice allows for setting a custom hardDepositDecreaseTimeout per beneficiary @dev this is required when solvency must be guaranteed for a period longer than the defaultHardDepositDecreaseTimeout @param beneficiary beneficiary whose hard deposit decreaseTimeout must be changed @param hardDepositTimeout new hardDeposit.timeout for beneficiary @param beneficiarySig beneficiary must give explicit approval by giving his signature on the new decreaseTimeout */ function setCustomHardDepositTimeout( address beneficiary, uint hardDepositTimeout, bytes memory beneficiarySig ) public { require(msg.sender == issuer, "SimpleSwap: not issuer"); require( beneficiary == recoverEIP712(customDecreaseTimeoutHash(address(this), beneficiary, hardDepositTimeout), beneficiarySig), "SimpleSwap: invalid beneficiary signature" ); hardDeposits[beneficiary].timeout = hardDepositTimeout; emit HardDepositTimeoutChanged(beneficiary, hardDepositTimeout); } /// @notice withdraw ether /// @param amount amount to withdraw // solhint-disable-next-line no-simple-event-func-name function withdraw(uint amount) public { /* only issuer can do this */ require(msg.sender == issuer, "SimpleSwap: not issuer"); /* ensure we don't take anything from the hard deposit */ require(amount <= liquidBalance(), "SimpleSwap: liquidBalance not sufficient"); require(token.transfer(issuer, amount), "SimpleSwap: SimpleSwap: transfer failed"); } function chequeHash(address chequebook, address beneficiary, uint cumulativePayout) internal pure returns (bytes32) { return keccak256(abi.encode( CHEQUE_TYPEHASH, chequebook, beneficiary, cumulativePayout )); } function cashOutHash(address chequebook, address sender, uint requestPayout, address recipient, uint callerPayout) internal pure returns (bytes32) { return keccak256(abi.encode( CASHOUT_TYPEHASH, chequebook, sender, requestPayout, recipient, callerPayout )); } function customDecreaseTimeoutHash(address chequebook, address beneficiary, uint decreaseTimeout) internal pure returns (bytes32) { return keccak256(abi.encode( CUSTOMDECREASETIMEOUT_TYPEHASH, chequebook, beneficiary, decreaseTimeout )); } } /** @title Factory contract for SimpleSwap @author The Swarm Authors @notice This contract deploys SimpleSwap contracts */ contract SimpleSwapFactory { /* event fired on every new SimpleSwap deployment */ event SimpleSwapDeployed(address contractAddress); /* mapping to keep track of which contracts were deployed by this factory */ mapping (address => bool) public deployedContracts; /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */ address public ERC20Address; constructor(address _ERC20Address) public { ERC20Address = _ERC20Address; } /** @notice deployes a new SimpleSwap contract @param issuer the issuer of cheques for the new chequebook @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations */ function deploySimpleSwap(address issuer, uint defaultHardDepositTimeoutDuration) public returns (address) { address contractAddress = address(new ERC20SimpleSwap(issuer, ERC20Address, defaultHardDepositTimeoutDuration)); deployedContracts[contractAddress] = true; emit SimpleSwapDeployed(contractAddress); return contractAddress; } }
[{"inputs":[{"internalType":"address","name":"_issuer","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_defaultHardDepositTimeout","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"ChequeBounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalPayout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cumulativePayout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"callerPayout","type":"uint256"}],"name":"ChequeCashed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"HardDepositAmountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"decreaseAmount","type":"uint256"}],"name":"HardDepositDecreasePrepared","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"timeout","type":"uint256"}],"name":"HardDepositTimeoutChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"CASHOUT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHEQUE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CUSTOMDECREASETIMEOUT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bounced","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"cumulativePayout","type":"uint256"},{"internalType":"bytes","name":"beneficiarySig","type":"bytes"},{"internalType":"uint256","name":"callerPayout","type":"uint256"},{"internalType":"bytes","name":"issuerSig","type":"bytes"}],"name":"cashCheque","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"cumulativePayout","type":"uint256"},{"internalType":"bytes","name":"issuerSig","type":"bytes"}],"name":"cashChequeBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"decreaseHardDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultHardDepositTimeout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hardDeposits","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"decreaseAmount","type":"uint256"},{"internalType":"uint256","name":"timeout","type":"uint256"},{"internalType":"uint256","name":"canBeDecreasedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseHardDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"issuer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"liquidBalanceFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paidOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"decreaseAmount","type":"uint256"}],"name":"prepareDecreaseHardDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"hardDepositTimeout","type":"uint256"},{"internalType":"bytes","name":"beneficiarySig","type":"bytes"}],"name":"setCustomHardDepositTimeout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalHardDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPaidOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063b6343b0d116100b8578063b7ec1a331161007c578063b7ec1a33146104e2578063c49f91d3146104ea578063c76a4d31146104f2578063d4c9a8e814610518578063e0bcf13a146105d1578063fc0c546a146105d957610142565b8063b6343b0d1461043e578063b648b4171461048a578063b69ef8a8146104a6578063b7770350146104ae578063b7998907146104da57610142565b80631d1438481161010a5780631d1438481461037d5780632e1a7d4d146103a1578063338f3fed146103be578063488b017c146103ea57806381f03fcb146103f2578063946f46a21461041857610142565b80630d5f26591461014757806312101021146102025780631357e1dc1461021c57806315c3343f146102245780631633fb1d1461022c575b600080fd5b6102006004803603606081101561015d57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561018c57600080fd5b82018360208201111561019e57600080fd5b803590602001918460018302840111600160201b831117156101bf57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506105e1945050505050565b005b61020a6105f4565b60408051918252519081900360200190f35b61020a6105fa565b61020a610600565b610200600480360360c081101561024257600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561027c57600080fd5b82018360208201111561028e57600080fd5b803590602001918460018302840111600160201b831117156102af57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092958435959094909350604081019250602001359050600160201b81111561030957600080fd5b82018360208201111561031b57600080fd5b803590602001918460018302840111600160201b8311171561033c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610624945050505050565b61038561069e565b604080516001600160a01b039092168252519081900360200190f35b610200600480360360208110156103b757600080fd5b50356106ad565b610200600480360360408110156103d457600080fd5b506001600160a01b03813516906020013561080e565b61020a61093a565b61020a6004803603602081101561040857600080fd5b50356001600160a01b031661095e565b6102006004803603602081101561042e57600080fd5b50356001600160a01b0316610970565b6104646004803603602081101561045457600080fd5b50356001600160a01b0316610a4b565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610492610a72565b604080519115158252519081900360200190f35b61020a610a82565b610200600480360360408110156104c457600080fd5b506001600160a01b038135169060200135610afe565b61020a610c20565b61020a610c44565b61020a610c5f565b61020a6004803603602081101561050857600080fd5b50356001600160a01b0316610c83565b6102006004803603606081101561052e57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561055d57600080fd5b82018360208201111561056f57600080fd5b803590602001918460018302840111600160201b8311171561059057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb4945050505050565b61020a610dc7565b610385610dcd565b6105ef338484600085610ddc565b505050565b60005481565b60035481565b7f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c1281565b61063a61063430338789876111cb565b84611243565b6001600160a01b0316866001600160a01b0316146106895760405162461bcd60e51b81526004018080602001828103825260298152602001806118656029913960400191505060405180910390fd5b6106968686868585610ddc565b505050505050565b6006546001600160a01b031681565b6006546001600160a01b03163314610705576040805162461bcd60e51b815260206004820152601660248201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604482015290519081900360640190fd5b61070d610c44565b81111561074b5760405162461bcd60e51b81526004018080602001828103825260288152602001806118d96028913960400191505060405180910390fd5b6001546006546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156107a457600080fd5b505af11580156107b8573d6000803e3d6000fd5b505050506040513d60208110156107ce57600080fd5b505161080b5760405162461bcd60e51b815260040180806020018281038252602781526020018061183e6027913960400191505060405180910390fd5b50565b6006546001600160a01b03163314610866576040805162461bcd60e51b815260206004820152601660248201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604482015290519081900360640190fd5b61086e610a82565b60055461087b90836112a5565b11156108b85760405162461bcd60e51b81526004018080602001828103825260348152602001806117a16034913960400191505060405180910390fd5b6001600160a01b038216600090815260046020526040902080546108dc90836112a5565b81556005546108eb90836112a5565b60055560006003820155805460408051918252516001600160a01b038516917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad919081900360200190a2505050565b7f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e320607950281565b60026020526000908152604090205481565b6001600160a01b03811660009081526004602052604090206003810154421080159061099f5750600381015415155b6109da5760405162461bcd60e51b81526004018080602001828103825260258152602001806118196025913960400191505060405180910390fd5b600181015481546109ea91611306565b8155600060038201556001810154600554610a0491611306565b600555805460408051918252516001600160a01b038416917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad919081900360200190a25050565b60046020526000908152604090208054600182015460028301546003909301549192909184565b600654600160a01b900460ff1681565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610acd57600080fd5b505afa158015610ae1573d6000803e3d6000fd5b505050506040513d6020811015610af757600080fd5b5051905090565b6006546001600160a01b03163314610b56576040805162461bcd60e51b815260206004820152601660248201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604482015290519081900360640190fd5b6001600160a01b03821660009081526004602052604090208054821115610bae5760405162461bcd60e51b815260040180806020018281038252602781526020018061188e6027913960400191505060405180910390fd5b60008160020154600014610bc6578160020154610bca565b6000545b4281016003840155600183018490556040805185815290519192506001600160a01b038616917fc8305077b495025ec4c1d977b176a762c350bb18cad4666ce1ee85c32b78698a9181900360200190a250505050565b7fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a81565b6000610c5a600554610c54610a82565b90611306565b905090565b7fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e81565b6001600160a01b038116600090815260046020526040812054610cae90610ca8610c44565b906112a5565b92915050565b6006546001600160a01b03163314610d0c576040805162461bcd60e51b815260206004820152601660248201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604482015290519081900360640190fd5b610d20610d1a308585611348565b82611243565b6001600160a01b0316836001600160a01b031614610d6f5760405162461bcd60e51b81526004018080602001828103825260298152602001806118656029913960400191505060405180910390fd5b6001600160a01b038316600081815260046020908152604091829020600201859055815185815291517f7b816003a769eb718bd9c66bdbd2dd5827da3f92bc6645276876bd7957b08cf09281900390910190a2505050565b60055481565b6001546001600160a01b031681565b6006546001600160a01b03163314610e4857610dfc610d1a3087866113b1565b6006546001600160a01b03908116911614610e485760405162461bcd60e51b81526004018080602001828103825260248152602001806118b56024913960400191505060405180910390fd5b6001600160a01b038516600090815260026020526040812054610e6c908590611306565b90506000610e8282610e7d89610c83565b61141a565b6001600160a01b03881660009081526004602052604081205491925090610eaa90839061141a565b905084821015610f01576040805162461bcd60e51b815260206004820152601d60248201527f53696d706c65537761703a2063616e6e6f74207061792063616c6c6572000000604482015290519081900360640190fd5b8015610f54576001600160a01b038816600090815260046020526040902054610f2a9082611306565b6001600160a01b038916600090815260046020526040902055600554610f509082611306565b6005555b6001600160a01b038816600090815260026020526040902054610f7790836112a5565b6001600160a01b038916600090815260026020526040902055600354610f9d90836112a5565b6003556001546001600160a01b031663a9059cbb88610fbc8589611306565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561100257600080fd5b505af1158015611016573d6000803e3d6000fd5b505050506040513d602081101561102c57600080fd5b50516110695760405162461bcd60e51b815260040180806020018281038252602781526020018061183e6027913960400191505060405180910390fd5b841561112a576001546040805163a9059cbb60e01b81523360048201526024810188905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156110c357600080fd5b505af11580156110d7573d6000803e3d6000fd5b505050506040513d60208110156110ed57600080fd5b505161112a5760405162461bcd60e51b815260040180806020018281038252602781526020018061183e6027913960400191505060405180910390fd5b6040805183815260208101889052808201879052905133916001600160a01b038a811692908c16917f950494fc3642fae5221b6c32e0e45765c95ebb382a04a71b160db0843e74c99f919081900360600190a48183146111c1576006805460ff60a01b1916600160a01b1790556040517f3f4449c047e11092ec54dc0751b6b4817a9162745de856c893a26e611d18ffc490600090a15b5050505050505050565b604080517f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e32060795026020808301919091526001600160a01b0397881682840152958716606082015260808101949094529190941660a083015260c0808301949094528051808303909401845260e09091019052815191012090565b600080611256611251611430565b61148a565b84604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905061129d81846114fd565b949350505050565b6000828201838110156112ff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006112ff83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116e8565b604080517fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a6020808301919091526001600160a01b03958616828401529390941660608501526080808501929092528051808503909201825260a0909301909252815191012090565b604080517f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c126020808301919091526001600160a01b03958616828401529390941660608501526080808501929092528051808503909201825260a0909301909252815191012090565b600081831061142957816112ff565b5090919050565b61143861177f565b506040805160a081018252600a6060820190815269436865717565626f6f6b60b01b608083015281528151808301835260038152620312e360ec1b602082810191909152820152469181019190915290565b805180516020918201208183015180519083012060409384015184517fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e818601528086019390935260608301919091526080808301919091528351808303909101815260a0909101909252815191012090565b60008151604114611555576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156115c65760405162461bcd60e51b81526004018080602001828103825260228152602001806117d56022913960400191505060405180910390fd5b8060ff16601b141580156115de57508060ff16601c14155b1561161a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117f76022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611676573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116de576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600081848411156117775760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561173c578181015183820152602001611724565b50505050905090810190601f1680156117695780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040518060600160405280606081526020016060815260200160008152509056fe53696d706c65537761703a2068617264206465706f7369742063616e6e6f74206265206d6f7265207468616e2062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756553696d706c65537761703a206465706f736974206e6f74207965742074696d6564206f757453696d706c65537761703a2053696d706c65537761703a207472616e73666572206661696c656453696d706c65537761703a20696e76616c69642062656e6566696369617279207369676e617475726553696d706c65537761703a2068617264206465706f736974206e6f742073756666696369656e7453696d706c65537761703a20696e76616c696420697373756572207369676e617475726553696d706c65537761703a206c697175696442616c616e6365206e6f742073756666696369656e74a2646970667358221220e966e3935e65edd1eee5f40a145487964af1fa6f0f5e354d400ee94b6a207d1364736f6c634300060c0033
Deployed Bytecode Sourcemap
31141:15139:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40615:191;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40615:191:0;;;;;;;;;;;;;;;;;-1:-1:-1;40615:191:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;40615:191:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40615:191:0;;-1:-1:-1;40615:191:0;;-1:-1:-1;;;;;40615:191:0:i;:::-;;31703:37;;;:::i;:::-;;;;;;;;;;;;;;;;34227:24;;;:::i;32473:136::-;;;:::i;39679:579::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39679:579:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39679:579:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39679:579:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39679:579:0;;;;;;;;;-1:-1:-1;39679:579:0;;;;-1:-1:-1;39679:579:0;;;;-1:-1:-1;;39679:579:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39679:579:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39679:579:0;;-1:-1:-1;39679:579:0;;-1:-1:-1;;;;;39679:579:0:i;34494:21::-;;;:::i;:::-;;;;-1:-1:-1;;;;;34494:21:0;;;;;;;;;;;;;;45023:378;;;;;;;;;;;;;;;;-1:-1:-1;45023:378:0;;:::i;43117:741::-;;;;;;;;;;;;;;;;-1:-1:-1;43117:741:0;;-1:-1:-1;;;;;43117:741:0;;;;;;:::i;32614:169::-;;;:::i;34151:40::-;;;;;;;;;;;;;;;;-1:-1:-1;34151:40:0;-1:-1:-1;;;;;34151:40:0;;:::i;42108:842::-;;;;;;;;;;;;;;;;-1:-1:-1;42108:842:0;-1:-1:-1;;;;;42108:842:0;;:::i;34317:52::-;;;;;;;;;;;;;;;;-1:-1:-1;34317:52:0;-1:-1:-1;;;;;34317:52:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34575:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;35303:95;;;:::i;41181:712::-;;;;;;;;;;;;;;;;-1:-1:-1;41181:712:0;;-1:-1:-1;;;;;41181:712:0;;;;;;:::i;32788:165::-;;;:::i;35478:102::-;;;:::i;32341:127::-;;;:::i;35662:146::-;;;;;;;;;;;;;;;;-1:-1:-1;35662:146:0;-1:-1:-1;;;;;35662:146:0;;:::i;44350:539::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44350:539:0;;;;;;;;;;;;;;;;;-1:-1:-1;44350:539:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;44350:539:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44350:539:0;;-1:-1:-1;44350:539:0;;-1:-1:-1;;;;;44350:539:0:i;34408:28::-;;;:::i;34050:18::-;;;:::i;40615:191::-;40726:74;40746:10;40758:9;40769:16;40787:1;40790:9;40726:19;:74::i;:::-;40615:191;;;:::o;31703:37::-;;;;:::o;34227:24::-;;;;:::o;32473:136::-;32515:94;32473:136;:::o;39679:579::-;39917:196;39941:147;39973:4;39991:10;40014:16;40043:9;40065:12;39941:11;:147::i;:::-;40090:14;39917:13;:196::i;:::-;-1:-1:-1;;;;;39902:211:0;;;;;;39886:273;;;;-1:-1:-1;;;39886:273:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40166:86;40186:11;40199:9;40210:16;40228:12;40242:9;40166:19;:86::i;:::-;39679:579;;;;;;:::o;34494:21::-;;;-1:-1:-1;;;;;34494:21:0;;:::o;45023:378::-;45125:6;;-1:-1:-1;;;;;45125:6:0;45111:10;:20;45103:55;;;;;-1:-1:-1;;;45103:55:0;;;;;;;;;;;;-1:-1:-1;;;45103:55:0;;;;;;;;;;;;;;;45246:15;:13;:15::i;:::-;45236:6;:25;;45228:78;;;;-1:-1:-1;;;45228:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45321:5;;45336:6;;45321:30;;;-1:-1:-1;;;45321:30:0;;-1:-1:-1;;;;;45336:6:0;;;45321:30;;;;;;;;;;;;:5;;;;;-1:-1:-1;;45321:30:0;;;;;;;;;;;;;;-1:-1:-1;45321:5:0;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45321:30:0;45313:82;;;;-1:-1:-1;;;45313:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45023:378;:::o;43117:741::-;43216:6;;-1:-1:-1;;;;;43216:6:0;43202:10;:20;43194:55;;;;;-1:-1:-1;;;43194:55:0;;;;;;;;;;;;-1:-1:-1;;;43194:55:0;;;;;;;;;;;;;;;43360:9;:7;:9::i;:::-;43328:16;;:28;;43349:6;43328:20;:28::i;:::-;:41;;43320:106;;;;-1:-1:-1;;;43320:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;43469:25:0;;43435:31;43469:25;;;:12;:25;;;;;43522:18;;:30;;43545:6;43522:22;:30::i;:::-;43501:51;;43676:16;;:28;;43697:6;43676:20;:28::i;:::-;43657:16;:47;43782:1;43751:28;;;:32;43833:18;;43795:57;;;;;;;-1:-1:-1;;;;;43795:57:0;;;;;;;;;;;;;43117:741;;;:::o;32614:169::-;32657:126;32614:169;:::o;34151:40::-;;;;;;;;;;;;;:::o;42108:842::-;-1:-1:-1;;;;;42206:25:0;;42172:31;42206:25;;;:12;:25;;;;;42253:28;;;;42246:3;:35;;;;:72;;-1:-1:-1;42285:28:0;;;;:33;;42246:72;42238:122;;;;-1:-1:-1;;;42238:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42633:26;;;;42610:18;;:50;;:22;:50::i;:::-;42589:71;;:18;42732:28;;;:32;42848:26;;;;42827:16;;:48;;:20;:48::i;:::-;42808:16;:67;42925:18;;42887:57;;;;;;;-1:-1:-1;;;;;42887:57:0;;;;;;;;;;;;;42108:842;;:::o;34317:52::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;34575:19::-;;;-1:-1:-1;;;34575:19:0;;;;;:::o;35303:95::-;35362:5;;:30;;;-1:-1:-1;;;35362:30:0;;35386:4;35362:30;;;;;;-1:-1:-1;;;;;;;35362:5:0;;-1:-1:-1;;35362:30:0;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35362:30:0;;-1:-1:-1;35303:95:0;:::o;41181:712::-;41295:6;;-1:-1:-1;;;;;41295:6:0;41281:10;:20;41273:55;;;;;-1:-1:-1;;;41273:55:0;;;;;;;;;;;;-1:-1:-1;;;41273:55:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;41369:25:0;;41335:31;41369:25;;;:12;:25;;;;;41482:18;;41464:36;;;41456:88;;;;-1:-1:-1;;;41456:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41629:12;41644:11;:19;;;41667:1;41644:24;:74;;41699:11;:19;;;41644:74;;;41671:25;;41644:74;41756:3;:13;;41725:28;;;:44;41776:26;;;:43;;;41831:56;;;;;;;;41756:13;;-1:-1:-1;;;;;;41831:56:0;;;;;;;;;;;;41181:712;;;;:::o;32788:165::-;32845:108;32788:165;:::o;35478:102::-;35523:4;35543:31;35557:16;;35543:9;:7;:9::i;:::-;:13;;:31::i;:::-;35536:38;;35478:102;:::o;32341:127::-;32389:79;32341:127;:::o;35662:146::-;-1:-1:-1;;;;;35769:25:0;;35729:4;35769:25;;;:12;:25;;;;;:32;35749:53;;:15;:13;:15::i;:::-;:19;;:53::i;:::-;35742:60;35662:146;-1:-1:-1;;35662:146:0:o;44350:539::-;44518:6;;-1:-1:-1;;;;;44518:6:0;44504:10;:20;44496:55;;;;;-1:-1:-1;;;44496:55:0;;;;;;;;;;;;-1:-1:-1;;;44496:55:0;;;;;;;;;;;;;;;44589:104;44603:73;44637:4;44644:11;44657:18;44603:25;:73::i;:::-;44678:14;44589:13;:104::i;:::-;-1:-1:-1;;;;;44574:119:0;;;;;;44558:194;;;;-1:-1:-1;;;44558:194:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44759:25:0;;;;;;:12;:25;;;;;;;;;:33;;:54;;;44825:58;;;;;;;;;;;;;;;;;44350:539;;;:::o;34408:28::-;;;;:::o;34050:18::-;;;-1:-1:-1;;;;;34050:18:0;;:::o;36467:2065::-;36789:6;;-1:-1:-1;;;;;36789:6:0;36775:10;:20;36771:191;;36824:82;36838:56;36857:4;36864:11;36877:16;36838:10;:56::i;36824:82::-;36814:6;;-1:-1:-1;;;;;36814:92:0;;;:6;;:92;36806:148;;;;-1:-1:-1;;;36806:148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37086:20:0;;37044:18;37086:20;;;:7;:20;;;;;;37065:42;;:16;;:20;:42::i;:::-;37044:63;;37150:16;37169:54;37178:13;37193:29;37210:11;37193:16;:29::i;:::-;37169:8;:54::i;:::-;-1:-1:-1;;;;;37317:25:0;;37271:21;37317:25;;;:12;:25;;;;;:32;37150:73;;-1:-1:-1;37271:21:0;37295:55;;37150:73;;37295:8;:55::i;:::-;37271:79;;37380:12;37365:11;:27;;37357:69;;;;;-1:-1:-1;;;37357:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37511:21;;37507:201;;-1:-1:-1;;;;;37578:25:0;;;;;;:12;:25;;;;;:32;:54;;37615:16;37578:36;:54::i;:::-;-1:-1:-1;;;;;37543:25:0;;;;;;:12;:25;;;;;:89;37662:16;;:38;;37683:16;37662:20;:38::i;:::-;37643:16;:57;37507:201;-1:-1:-1;;;;;37806:20:0;;;;;;:7;:20;;;;;;:37;;37831:11;37806:24;:37::i;:::-;-1:-1:-1;;;;;37783:20:0;;;;;;:7;:20;;;;;:60;37865:12;;:29;;37882:11;37865:16;:29::i;:::-;37850:12;:44;37945:5;;-1:-1:-1;;;;;37945:5:0;:14;37960:9;37971:29;:11;37987:12;37971:15;:29::i;:::-;37945:56;;;;;;;;;;;;;-1:-1:-1;;;;;37945:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37945:56:0;37937:108;;;;-1:-1:-1;;;37937:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38107:17;;38103:132;;38143:5;;:40;;;-1:-1:-1;;;38143:40:0;;38158:10;38143:40;;;;;;;;;;;;-1:-1:-1;;;;;38143:5:0;;;;-1:-1:-1;;38143:40:0;;;;;;;;;;;;;;;-1:-1:-1;38143:5:0;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38143:40:0;38135:92;;;;-1:-1:-1;;;38135:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38246:93;;;;;;;;;;;;;;;;;;;;38283:10;;-1:-1:-1;;;;;38246:93:0;;;;;;;;;;;;;;;;;;38454:11;38437:13;:28;38433:94;;38476:7;:14;;-1:-1:-1;;;;38476:14:0;-1:-1:-1;;;38476:14:0;;;38504:15;;;;-1:-1:-1;;38504:15:0;38433:94;36467:2065;;;;;;;;:::o;45670:318::-;45844:137;;;32657:126;45844:137;;;;;;;;-1:-1:-1;;;;;45844:137:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45844:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;45834:148;;;;;;45670:318::o;33717:263::-;33795:7;33811:14;33886:25;33902:8;:6;:8::i;:::-;33886:15;:25::i;:::-;33922:4;33838:95;;;;;;-1:-1:-1;;;33838:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33828:106;;;;;;33811:123;;33948:26;33962:6;33970:3;33948:13;:26::i;:::-;33941:33;33717:263;-1:-1:-1;;;;33717:263:0:o;4614:181::-;4672:7;4704:5;;;4728:6;;;;4720:46;;;;;-1:-1:-1;;;4720:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4786:1;4614:181;-1:-1:-1;;;4614:181:0:o;5078:136::-;5136:7;5163:43;5167:1;5170;5163:43;;;;;;;;;;;;;;;;;:3;:43::i;45994:283::-;46151:119;;;32845:108;46151:119;;;;;;;;-1:-1:-1;;;;;46151:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46151:119:0;;;;;;46141:130;;;;;;45994:283::o;45407:255::-;45550:105;;;32515:94;45550:105;;;;;;;;-1:-1:-1;;;;;45550:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45550:105:0;;;;;;45540:116;;;;;;45407:255::o;30187:106::-;30245:7;30276:1;30272;:5;:13;;30284:1;30272:13;;;-1:-1:-1;30280:1:0;;30187:106;-1:-1:-1;30187:106:0:o;33003:251::-;33044:19;;:::i;:::-;-1:-1:-1;33152:96:0;;;;;;;;;;;;;;;-1:-1:-1;;;33152:96:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;33152:96:0;;;;;;;-1:-1:-1;;33152:96:0;33123:9;-1:-1:-1;;;33152:96:0;;;;;33003:251::o;33357:297::-;33541:17;;33525:35;;;;;;;33587:20;;;;33571:38;;;;;;33620:20;;;;;33472:175;;32389:79;33472:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33462:186;;;;;;33357:297::o;27180:2110::-;27258:7;27321:9;:16;27341:2;27321:22;27317:96;;27360:41;;;-1:-1:-1;;;27360:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;27317:96;27774:4;27759:20;;27753:27;27820:4;27805:20;;27799:27;27874:4;27859:20;;27853:27;27482:9;27845:36;28804:66;28791:79;;28787:156;;;28887:44;;-1:-1:-1;;;28887:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28787:156;28959:1;:7;;28964:2;28959:7;;:18;;;;;28970:1;:7;;28975:2;28970:7;;28959:18;28955:95;;;28994:44;;-1:-1:-1;;;28994:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28955:95;29147:14;29164:24;29174:4;29180:1;29183;29186;29164:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29164:24:0;;-1:-1:-1;;29164:24:0;;;-1:-1:-1;;;;;;;29207:20:0;;29199:57;;;;;-1:-1:-1;;;29199:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29276:6;27180:2110;-1:-1:-1;;;;;;27180:2110:0:o;5517:192::-;5603:7;5639:12;5631:6;;;;5623:29;;;;-1:-1:-1;;;5623:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5675:5:0;;;5517:192::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://e966e3935e65edd1eee5f40a145487964af1fa6f0f5e354d400ee94b6a207d13
Loading...
Loading
[ Download: CSV Export ]
[ 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.