Overview
FTM Balance
0 FTM
FTM Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 69709641 | 413 days ago | IN | 0 FTM | 0.00164433 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
69709041 | 413 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
NUSD
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/INUSD.sol"; contract NUSD is INUSD, Ownable { uint8 public constant decimals = 30; string public name; string public symbol; uint256 public totalSupply; mapping(address => uint256) public balances; event Burn(address indexed account, uint256 value); event Mint(address indexed beneficiary, uint256 value); constructor(string memory _name, string memory _symbol, uint256 _initialSupply) { name = _name; symbol = _symbol; _mint(msg.sender, _initialSupply); } function burn(address _account, uint256 _amount) external override onlyOwner { _burn(_account, _amount); } function mint(address _account, uint256 _amount) external override onlyOwner { _mint(_account, _amount); } function setInfo(string memory _name, string memory _symbol) external onlyOwner { name = _name; symbol = _symbol; } function balanceOf(address _account) external view override returns (uint256) { return balances[_account]; } function _burn(address _account, uint256 _amount) internal { require(_account != address(0), "NUSD: burn from the zero address"); require(balances[_account] >= _amount, "NUSD: burn amount exceeds balance"); balances[_account] -= _amount; totalSupply -= _amount; emit Burn(_account, _amount); } function _mint(address _account, uint256 _amount) internal { require(_account != address(0), "NUSD: mint to the zero address"); totalSupply += _amount; balances[_account] += _amount; emit Mint(_account, _amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface INUSD { function burn(address _account, uint256 _amount) external; function mint(address _account, uint256 _amount) external; function balanceOf(address _account) external view returns (uint256); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000d4538038062000d45833981016040819052620000349162000328565b6200003f3362000080565b825162000054906001906020860190620001b5565b5081516200006a906002906020850190620001b5565b50620000773382620000d0565b505050620003ff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200012b5760405162461bcd60e51b815260206004820152601e60248201527f4e5553443a206d696e7420746f20746865207a65726f20616464726573730000604482015260640160405180910390fd5b80600360008282546200013f91906200039b565b90915550506001600160a01b038216600090815260046020526040812080548392906200016e9084906200039b565b90915550506040518181526001600160a01b038316907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a25050565b828054620001c390620003c2565b90600052602060002090601f016020900481019282620001e7576000855562000232565b82601f106200020257805160ff191683800117855562000232565b8280016001018555821562000232579182015b828111156200023257825182559160200191906001019062000215565b506200024092915062000244565b5090565b5b8082111562000240576000815560010162000245565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028357600080fd5b81516001600160401b0380821115620002a057620002a06200025b565b604051601f8301601f19908116603f01168101908282118183101715620002cb57620002cb6200025b565b81604052838152602092508683858801011115620002e857600080fd5b600091505b838210156200030c5785820183015181830184015290820190620002ed565b838211156200031e5760008385830101525b9695505050505050565b6000806000606084860312156200033e57600080fd5b83516001600160401b03808211156200035657600080fd5b620003648783880162000271565b945060208601519150808211156200037b57600080fd5b506200038a8682870162000271565b925050604084015190509250925092565b60008219821115620003bd57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003d757607f821691505b60208210811415620003f957634e487b7160e01b600052602260045260246000fd5b50919050565b610936806200040f6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a6146101665780638da5cb5b1461016e57806395d89b41146101895780639dc29fac14610191578063a923fc40146101a4578063f2fde38b146101b757600080fd5b806306fdde03146100b957806318160ddd146100d757806327e235e3146100ee578063313ce5671461010e57806340c10f191461012857806370a082311461013d575b600080fd5b6100c16101ca565b6040516100ce91906106bc565b60405180910390f35b6100e060035481565b6040519081526020016100ce565b6100e06100fc36600461072d565b60046020526000908152604090205481565b610116601e81565b60405160ff90911681526020016100ce565b61013b61013636600461074f565b610258565b005b6100e061014b36600461072d565b6001600160a01b031660009081526004602052604090205490565b61013b61026e565b6000546040516001600160a01b0390911681526020016100ce565b6100c1610282565b61013b61019f36600461074f565b61028f565b61013b6101b236600461081c565b6102a1565b61013b6101c536600461072d565b6102d5565b600180546101d790610880565b80601f016020809104026020016040519081016040528092919081815260200182805461020390610880565b80156102505780601f1061022557610100808354040283529160200191610250565b820191906000526020600020905b81548152906001019060200180831161023357829003601f168201915b505050505081565b610260610353565b61026a82826103ad565b5050565b610276610353565b610280600061048a565b565b600280546101d790610880565b610297610353565b61026a82826104da565b6102a9610353565b81516102bc906001906020850190610623565b5080516102d0906002906020840190610623565b505050565b6102dd610353565b6001600160a01b0381166103475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6103508161048a565b50565b6000546001600160a01b031633146102805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b6001600160a01b0382166104035760405162461bcd60e51b815260206004820152601e60248201527f4e5553443a206d696e7420746f20746865207a65726f20616464726573730000604482015260640161033e565b806003600082825461041591906108d1565b90915550506001600160a01b038216600090815260046020526040812080548392906104429084906108d1565b90915550506040518181526001600160a01b038316907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a25050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166105305760405162461bcd60e51b815260206004820181905260248201527f4e5553443a206275726e2066726f6d20746865207a65726f2061646472657373604482015260640161033e565b6001600160a01b0382166000908152600460205260409020548111156105a25760405162461bcd60e51b815260206004820152602160248201527f4e5553443a206275726e20616d6f756e7420657863656564732062616c616e636044820152606560f81b606482015260840161033e565b6001600160a01b038216600090815260046020526040812080548392906105ca9084906108e9565b9250508190555080600360008282546105e391906108e9565b90915550506040518181526001600160a01b038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200161047e565b82805461062f90610880565b90600052602060002090601f0160209004810192826106515760008555610697565b82601f1061066a57805160ff1916838001178555610697565b82800160010185558215610697579182015b8281111561069757825182559160200191906001019061067c565b506106a39291506106a7565b5090565b5b808211156106a357600081556001016106a8565b600060208083528351808285015260005b818110156106e9578581018301518582016040015282016106cd565b818111156106fb576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461072857600080fd5b919050565b60006020828403121561073f57600080fd5b61074882610711565b9392505050565b6000806040838503121561076257600080fd5b61076b83610711565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126107a057600080fd5b813567ffffffffffffffff808211156107bb576107bb610779565b604051601f8301601f19908116603f011681019082821181831017156107e3576107e3610779565b816040528381528660208588010111156107fc57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561082f57600080fd5b823567ffffffffffffffff8082111561084757600080fd5b6108538683870161078f565b9350602085013591508082111561086957600080fd5b506108768582860161078f565b9150509250929050565b600181811c9082168061089457607f821691505b602082108114156108b557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156108e4576108e46108bb565b500190565b6000828210156108fb576108fb6108bb565b50039056fea2646970667358221220093c47851b2aee8d9df38b96ad39f2dd24a3ee8fe1cefa15c1c8b17d066ce02a64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a566573746564205553440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e55534400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a6146101665780638da5cb5b1461016e57806395d89b41146101895780639dc29fac14610191578063a923fc40146101a4578063f2fde38b146101b757600080fd5b806306fdde03146100b957806318160ddd146100d757806327e235e3146100ee578063313ce5671461010e57806340c10f191461012857806370a082311461013d575b600080fd5b6100c16101ca565b6040516100ce91906106bc565b60405180910390f35b6100e060035481565b6040519081526020016100ce565b6100e06100fc36600461072d565b60046020526000908152604090205481565b610116601e81565b60405160ff90911681526020016100ce565b61013b61013636600461074f565b610258565b005b6100e061014b36600461072d565b6001600160a01b031660009081526004602052604090205490565b61013b61026e565b6000546040516001600160a01b0390911681526020016100ce565b6100c1610282565b61013b61019f36600461074f565b61028f565b61013b6101b236600461081c565b6102a1565b61013b6101c536600461072d565b6102d5565b600180546101d790610880565b80601f016020809104026020016040519081016040528092919081815260200182805461020390610880565b80156102505780601f1061022557610100808354040283529160200191610250565b820191906000526020600020905b81548152906001019060200180831161023357829003601f168201915b505050505081565b610260610353565b61026a82826103ad565b5050565b610276610353565b610280600061048a565b565b600280546101d790610880565b610297610353565b61026a82826104da565b6102a9610353565b81516102bc906001906020850190610623565b5080516102d0906002906020840190610623565b505050565b6102dd610353565b6001600160a01b0381166103475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6103508161048a565b50565b6000546001600160a01b031633146102805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b6001600160a01b0382166104035760405162461bcd60e51b815260206004820152601e60248201527f4e5553443a206d696e7420746f20746865207a65726f20616464726573730000604482015260640161033e565b806003600082825461041591906108d1565b90915550506001600160a01b038216600090815260046020526040812080548392906104429084906108d1565b90915550506040518181526001600160a01b038316907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a25050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166105305760405162461bcd60e51b815260206004820181905260248201527f4e5553443a206275726e2066726f6d20746865207a65726f2061646472657373604482015260640161033e565b6001600160a01b0382166000908152600460205260409020548111156105a25760405162461bcd60e51b815260206004820152602160248201527f4e5553443a206275726e20616d6f756e7420657863656564732062616c616e636044820152606560f81b606482015260840161033e565b6001600160a01b038216600090815260046020526040812080548392906105ca9084906108e9565b9250508190555080600360008282546105e391906108e9565b90915550506040518181526001600160a01b038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200161047e565b82805461062f90610880565b90600052602060002090601f0160209004810192826106515760008555610697565b82601f1061066a57805160ff1916838001178555610697565b82800160010185558215610697579182015b8281111561069757825182559160200191906001019061067c565b506106a39291506106a7565b5090565b5b808211156106a357600081556001016106a8565b600060208083528351808285015260005b818110156106e9578581018301518582016040015282016106cd565b818111156106fb576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461072857600080fd5b919050565b60006020828403121561073f57600080fd5b61074882610711565b9392505050565b6000806040838503121561076257600080fd5b61076b83610711565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126107a057600080fd5b813567ffffffffffffffff808211156107bb576107bb610779565b604051601f8301601f19908116603f011681019082821181831017156107e3576107e3610779565b816040528381528660208588010111156107fc57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561082f57600080fd5b823567ffffffffffffffff8082111561084757600080fd5b6108538683870161078f565b9350602085013591508082111561086957600080fd5b506108768582860161078f565b9150509250929050565b600181811c9082168061089457607f821691505b602082108114156108b557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156108e4576108e46108bb565b500190565b6000828210156108fb576108fb6108bb565b50039056fea2646970667358221220093c47851b2aee8d9df38b96ad39f2dd24a3ee8fe1cefa15c1c8b17d066ce02a64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a566573746564205553440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e55534400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Vested USD
Arg [1] : _symbol (string): NUSD
Arg [2] : _initialSupply (uint256): 1
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 5665737465642055534400000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4e55534400000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.