Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Sponsored
Latest 25 from a total of 778 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Claim Swap | 12764870 | 808 days 12 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12764580 | 808 days 13 hrs ago | IN | 0 ETH | 0.00070126 | ||||
Claim Swap | 12764561 | 808 days 13 hrs ago | IN | 0 ETH | 0.00071401 | ||||
Claim Swap | 12764447 | 808 days 14 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12763728 | 808 days 16 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12760479 | 809 days 4 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12760170 | 809 days 6 hrs ago | IN | 0 ETH | 0.00021188 | ||||
Claim Swap | 12760167 | 809 days 6 hrs ago | IN | 0 ETH | 0.00015538 | ||||
Claim Swap | 12760167 | 809 days 6 hrs ago | IN | 0 ETH | 0.00042075 | ||||
Claim Swap | 12759492 | 809 days 8 hrs ago | IN | 0 ETH | 0.00082876 | ||||
Claim Swap | 12759305 | 809 days 9 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12757206 | 809 days 17 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12756974 | 809 days 18 hrs ago | IN | 0 ETH | 0.00070126 | ||||
Claim Swap | 12754326 | 810 days 3 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12754282 | 810 days 3 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12752488 | 810 days 10 hrs ago | IN | 0 ETH | 0.00032655 | ||||
Claim Swap | 12751538 | 810 days 14 hrs ago | IN | 0 ETH | 0.00070126 | ||||
Claim Swap | 12751129 | 810 days 15 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12750734 | 810 days 17 hrs ago | IN | 0 ETH | 0.00063751 | ||||
Claim Swap | 12749816 | 810 days 20 hrs ago | IN | 0 ETH | 0.0010997 | ||||
Claim Swap | 12749187 | 810 days 23 hrs ago | IN | 0 ETH | 0.00146627 | ||||
Claim Swap | 12748768 | 811 days 40 mins ago | IN | 0 ETH | 0.00063566 | ||||
Claim Swap | 12748768 | 811 days 40 mins ago | IN | 0 ETH | 0.00138339 | ||||
Claim Swap | 12747823 | 811 days 4 hrs ago | IN | 0 ETH | 0.00023543 | ||||
Claim Swap | 12747820 | 811 days 4 hrs ago | IN | 0 ETH | 0.00063751 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MuteSwap
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-27 */ /** *Submitted for verification at Etherscan.io on 2021-01-29 */ // File: Contracts/Utils/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @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: Contracts/Mute/MuteSwap.sol pragma solidity 0.6.12; /** * @title Mute Swap Contract * @dev Maintains and issues minting for the mute chain swap */ contract MuteSwap { using SafeMath for uint256; mapping(address => uint256) private _balances; address public owner; address public muteContract; uint256 public amountSetToClaim; uint256 public amountClaimed; modifier onlyOwner() { require(msg.sender == owner, "MuteSwap::OnlyOwner: Not the owner"); _; } constructor(address _muteContract) public { owner = msg.sender; muteContract = _muteContract; } function addSwapInfo(address[] memory _addresses, uint256[] memory _values) external onlyOwner { for (uint256 index = 0; index < _addresses.length; index++) { _balances[_addresses[index]] = _balances[_addresses[index]].add(_values[index]); amountSetToClaim = amountSetToClaim.add(_values[index]); } } function claimSwap() external { require(_balances[msg.sender] > 0, "MuteSwap::claimSwap: must have a balance greater than 0"); require(IMute(muteContract).Mint(msg.sender, _balances[msg.sender]) == true); amountClaimed = amountClaimed.add(_balances[msg.sender]); _balances[msg.sender] = 0; } function claimBalance() external view returns (uint256) { return _balances[msg.sender]; } } interface IMute { function Mint(address account, uint256 amount) external returns (bool); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_muteContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"addSwapInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"amountClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountSetToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"muteContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516109353803806109358339818101604052602081101561003357600080fd5b810190808051906020019092919050505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061085f806100d66000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80637f6271281161005b5780637f627128146100f25780638da5cb5b146100fc578063ad6b5d0414610130578063f79891a91461014e5761007d565b806308c07bd01461008257806330509bca146100b657806368ac805d146100d4575b600080fd5b61008a61029a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100be6102c0565b6040518082815260200191505060405180910390f35b6100dc610306565b6040518082815260200191505060405180910390f35b6100fa61030c565b005b61010461055e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610138610584565b6040518082815260200191505060405180910390f35b6102986004803603604081101561016457600080fd5b810190808035906020019064010000000081111561018157600080fd5b82018360208201111561019357600080fd5b803590602001918460208302840111640100000000831117156101b557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561021557600080fd5b82018360208201111561022757600080fd5b8035906020019184602083028401116401000000008311171561024957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929050505061058a565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b60035481565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116103a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806107d16037913960400191505060405180910390fd5b60011515600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f6798a5336000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561047857600080fd5b505af115801561048c573d6000803e3d6000fd5b505050506040513d60208110156104a257600080fd5b81019080805190602001909291905050501515146104bf57600080fd5b6105126000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460045461074890919063ffffffff16565b60048190555060008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610630576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806108086022913960400191505060405180910390fd5b60005b8251811015610743576106b382828151811061064b57fe5b602002602001015160008086858151811061066257fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461074890919063ffffffff16565b6000808584815181106106c257fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061073082828151811061071757fe5b602002602001015160035461074890919063ffffffff16565b6003819055508080600101915050610633565b505050565b6000808284019050838110156107c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b809150509291505056fe4d757465537761703a3a636c61696d537761703a206d757374206861766520612062616c616e63652067726561746572207468616e20304d757465537761703a3a4f6e6c794f776e65723a204e6f7420746865206f776e6572a2646970667358221220fab9ab905aeaa8951b0643307ff3b608c080b12c94033cda1ba6c06391b3e0c464736f6c634300060c0033000000000000000000000000a49d7499271ae71cd8ab9ac515e6694c755d400c
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80637f6271281161005b5780637f627128146100f25780638da5cb5b146100fc578063ad6b5d0414610130578063f79891a91461014e5761007d565b806308c07bd01461008257806330509bca146100b657806368ac805d146100d4575b600080fd5b61008a61029a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100be6102c0565b6040518082815260200191505060405180910390f35b6100dc610306565b6040518082815260200191505060405180910390f35b6100fa61030c565b005b61010461055e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610138610584565b6040518082815260200191505060405180910390f35b6102986004803603604081101561016457600080fd5b810190808035906020019064010000000081111561018157600080fd5b82018360208201111561019357600080fd5b803590602001918460208302840111640100000000831117156101b557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561021557600080fd5b82018360208201111561022757600080fd5b8035906020019184602083028401116401000000008311171561024957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929050505061058a565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b60035481565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116103a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806107d16037913960400191505060405180910390fd5b60011515600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f6798a5336000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561047857600080fd5b505af115801561048c573d6000803e3d6000fd5b505050506040513d60208110156104a257600080fd5b81019080805190602001909291905050501515146104bf57600080fd5b6105126000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460045461074890919063ffffffff16565b60048190555060008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610630576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806108086022913960400191505060405180910390fd5b60005b8251811015610743576106b382828151811061064b57fe5b602002602001015160008086858151811061066257fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461074890919063ffffffff16565b6000808584815181106106c257fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061073082828151811061071757fe5b602002602001015160035461074890919063ffffffff16565b6003819055508080600101915050610633565b505050565b6000808284019050838110156107c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b809150509291505056fe4d757465537761703a3a636c61696d537761703a206d757374206861766520612062616c616e63652067726561746572207468616e20304d757465537761703a3a4f6e6c794f776e65723a204e6f7420746865206f776e6572a2646970667358221220fab9ab905aeaa8951b0643307ff3b608c080b12c94033cda1ba6c06391b3e0c464736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a49d7499271ae71cd8ab9ac515e6694c755d400c
-----Decoded View---------------
Arg [0] : _muteContract (address): 0xA49d7499271aE71cd8aB9Ac515e6694C755d400c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a49d7499271ae71cd8ab9ac515e6694c755d400c
Deployed Bytecode Sourcemap
5643:1301:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5782:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;6838:103;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5816:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6496:334;;;:::i;:::-;;5755:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;5854:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6139:349;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5782:27;;;;;;;;;;;;;:::o;6838:103::-;6885:7;6912:9;:21;6922:10;6912:21;;;;;;;;;;;;;;;;6905:28;;6838:103;:::o;5816:31::-;;;;:::o;6496:334::-;6569:1;6545:9;:21;6555:10;6545:21;;;;;;;;;;;;;;;;:25;6537:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6712:4;6649:67;;6655:12;;;;;;;;;;;6649:24;;;6674:10;6686:9;:21;6696:10;6686:21;;;;;;;;;;;;;;;;6649:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:67;;;6641:76;;;;;;6746:40;6764:9;:21;6774:10;6764:21;;;;;;;;;;;;;;;;6746:13;;:17;;:40;;;;:::i;:::-;6730:13;:56;;;;6821:1;6797:9;:21;6807:10;6797:21;;;;;;;;;;;;;;;:25;;;;6496:334::o;5755:20::-;;;;;;;;;;;;;:::o;5854:28::-;;;;:::o;6139:349::-;5943:5;;;;;;;;;;;5929:19;;:10;:19;;;5921:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6250:13:::1;6245:236;6277:10;:17;6269:5;:25;6245:236;;;6351:48;6384:7;6392:5;6384:14;;;;;;;;;;;;;;6351:9;:28:::0;6361:10:::1;6372:5;6361:17;;;;;;;;;;;;;;6351:28;;;;;;;;;;;;;;;;:32;;:48;;;;:::i;:::-;6320:9;:28:::0;6330:10:::1;6341:5;6330:17;;;;;;;;;;;;;;6320:28;;;;;;;;;;;;;;;:79;;;;6433:36;6454:7;6462:5;6454:14;;;;;;;;;;;;;;6433:16;;:20;;:36;;;;:::i;:::-;6414:16;:55;;;;6296:7;;;;;;;6245:236;;;;6139:349:::0;;:::o;1012:181::-;1070:7;1090:9;1106:1;1102;:5;1090:17;;1131:1;1126;:6;;1118:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1184:1;1177:8;;;1012:181;;;;:::o
Swarm Source
ipfs://fab9ab905aeaa8951b0643307ff3b608c080b12c94033cda1ba6c06391b3e0c4
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.