ERC-20
Overview
Max Total Supply
60,000,000 DEFI
Holders
79
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
32,789.872545730406649917 DEFIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DEFI
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.8.7;import "./IERC20.sol";import "./Ownable.sol";contract DEFI is Ownable, IERC20 {string private _name;string private _symbol;uint256 private _totalSupply;bool private locked;mapping(address => uint256) private _balances;mapping(address => mapping(address => uint256)) private _allowances;address private immutable _xdc;modifier noReentrant() {require(!locked, "Reentrant call detected!");locked = true;_;locked = false;}event log(string s, uint256 a, address aa);
1234567891011121314151617181920212223// SPDX-License-Identifier: MITpragma solidity 0.8.7;/*** @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;}}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.8.7;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20 {/*** @dev Emitted when `value` tokens are moved from one account (`from`) to* another (`to`).** Note that `value` may be zero.*/event Transfer(address indexed from, address indexed to, uint256 value);/*** @dev Emitted when the allowance of a `spender` for an `owner` is set by* a call to {approve}. `value` is the new allowance.*/event Approval(address indexed owner, address indexed spender, uint256 value);/*** @dev Returns the name of the token.*/function name() external view returns (string memory);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.8.7;import {Context} from "./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.** The initial owner is set to the address provided by the deployer. 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 constant _owner = address(0);/*** @dev Throws if called by any account other than the owner.*/modifier onlyOwner() {
12345678910111213141516171819{"optimizer": {"enabled": true,"runs": 200},"outputSelection": {"*": {"*": ["evm.bytecode","evm.deployedBytecode","devdoc","userdoc","metadata","abi"]}},"libraries": {}}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"xdc_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"s","type":"string"},{"indexed":false,"internalType":"uint256","name":"a","type":"uint256"},{"indexed":false,"internalType":"address","name":"aa","type":"address"}],"name":"log","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162000f0d38038062000f0d8339810160408190526200003491620002cb565b6001600160a01b0381166200004857600080fd5b82516200005d9060009060208601906200016e565b508151620000739060019060208501906200016e565b506001600160601b0319606082901b166080526200009d336a31a17e847807b1bc000000620000a6565b505050620003d2565b6001600160a01b038216620001015760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000115919062000358565b90915550506001600160a01b0382166000818152600460209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b8280546200017c906200037f565b90600052602060002090601f016020900481019282620001a05760008555620001eb565b82601f10620001bb57805160ff1916838001178555620001eb565b82800160010185558215620001eb579182015b82811115620001eb578251825591602001919060010190620001ce565b50620001f9929150620001fd565b5090565b5b80821115620001f95760008155600101620001fe565b600082601f8301126200022657600080fd5b81516001600160401b0380821115620002435762000243620003bc565b604051601f8301601f19908116603f011681019082821181831017156200026e576200026e620003bc565b816040528381526020925086838588010111156200028b57600080fd5b600091505b83821015620002af578582018301518183018401529082019062000290565b83821115620002c15760008385830101525b9695505050505050565b600080600060608486031215620002e157600080fd5b83516001600160401b0380821115620002f957600080fd5b620003078783880162000214565b945060208601519150808211156200031e57600080fd5b506200032d8682870162000214565b604086015190935090506001600160a01b03811681146200034d57600080fd5b809150509250925092565b600082198211156200037a57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200039457607f821691505b60208210811415620003b657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c610b1c620003f160003960006105790152610b1c6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a08231146101415780638da5cb5b1461016a57806395d89b4114610179578063a457c2d714610181578063a9059cbb14610194578063dd62ed3e146101a757600080fd5b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100fa57806323b872dd1461010c578063313ce5671461011f578063395093511461012e575b600080fd5b6100c16101ba565b6040516100ce9190610a04565b60405180910390f35b6100ea6100e53660046109be565b61024c565b60405190151581526020016100ce565b6002545b6040519081526020016100ce565b6100ea61011a366004610982565b610264565b604051601281526020016100ce565b6100ea61013c3660046109be565b610288565b6100fe61014f36600461092d565b6001600160a01b031660009081526004602052604090205490565b604051600081526020016100ce565b6100c16102aa565b6100ea61018f3660046109be565b6102b9565b6100ea6101a23660046109be565b610339565b6100fe6101b536600461094f565b610347565b6060600080546101c990610aab565b80601f01602080910402602001604051908101604052809291908181526020018280546101f590610aab565b80156102425780601f1061021757610100808354040283529160200191610242565b820191906000526020600020905b81548152906001019060200180831161022557829003601f168201915b5050505050905090565b60003361025a818585610372565b5060019392505050565b600033610272858285610496565b61027d858585610510565b506001949350505050565b60003361025a81858561029b8383610347565b6102a59190610a37565b610372565b6060600180546101c990610aab565b600033816102c78286610347565b90508381101561032c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61027d8286868403610372565b60003361025a818585610510565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6001600160a01b0383166103d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610323565b6001600160a01b0382166104355760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610323565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006104a28484610347565b9050600019811461050a57818110156104fd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610323565b61050a8484848403610372565b50505050565b6001600160a01b0383166105745760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610323565b61059e7f00000000000000000000000000000000000000000000000000000000000000008461072c565b6001600160a01b038316600090815260046020526040902054818110156106165760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610323565b6001600160a01b038085166000908152600460209081526040808320868603905592861682528282208054860190558251808401909352600783526662696774696d6560c81b908301529061066f9060019081846108d8565b905080156106d8576040805160608082526007908201526662696774696d6560c81b6080820152600160208201526001600160a01b0387168183015290517f1c7ec4485ea8bf18e646e5381f7318f45423199ed371307bc9171a4242f273359181900360a00190a15b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161071d91815260200190565b60405180910390a35050505050565b60035460ff161561077f5760405162461bcd60e51b815260206004820152601860248201527f5265656e7472616e742063616c6c2064657465637465642100000000000000006044820152606401610323565b6003805460ff19166001179055604080518082018252601a81527f616c6c6f77616e636528616464726573732c6164647265737329000000000000602082015290516001600160a01b038381166024830152600060448301819052918291861690849060640160408051601f198184030181529082905291610800916109e8565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161083791906109e8565b6000604051808303816000865af19150503d8060008114610874576040519150601f19603f3d011682016040523d82523d6000602084013e610879565b606091505b50915091508161089a576000610890816001610a5d565b50505050506108ca565b60006108a7826020015190565b9050806108b757505050506108ca565b6000858152600460205260409020555050505b50506003805460ff19169055565b60008280156108e45750815b80156108f8575067ffffffffffffffff8516155b1561090557506001610909565b5060005b949350505050565b80356001600160a01b038116811461092857600080fd5b919050565b60006020828403121561093f57600080fd5b61094882610911565b9392505050565b6000806040838503121561096257600080fd5b61096b83610911565b915061097960208401610911565b90509250929050565b60008060006060848603121561099757600080fd5b6109a084610911565b92506109ae60208501610911565b9150604084013590509250925092565b600080604083850312156109d157600080fd5b6109da83610911565b946020939093013593505050565b600082516109fa818460208701610a7f565b9190910192915050565b6020815260008251806020840152610a23816040850160208701610a7f565b601f01601f19169190910160400192915050565b60008219821115610a5857634e487b7160e01b600052601160045260246000fd5b500190565b600082610a7a57634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015610a9a578181015183820152602001610a82565b8381111561050a5750506000910152565b600181811c90821680610abf57607f821691505b60208210811415610ae057634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212202e58d51eae63119678bf947d636f0ec189e1d1e017fa03466530330c95df0adc64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000075c33efc17c3f2449c4df2bc4356aab2c9b70193000000000000000000000000000000000000000000000000000000000000000544652e466900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044445464900000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a08231146101415780638da5cb5b1461016a57806395d89b4114610179578063a457c2d714610181578063a9059cbb14610194578063dd62ed3e146101a757600080fd5b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100fa57806323b872dd1461010c578063313ce5671461011f578063395093511461012e575b600080fd5b6100c16101ba565b6040516100ce9190610a04565b60405180910390f35b6100ea6100e53660046109be565b61024c565b60405190151581526020016100ce565b6002545b6040519081526020016100ce565b6100ea61011a366004610982565b610264565b604051601281526020016100ce565b6100ea61013c3660046109be565b610288565b6100fe61014f36600461092d565b6001600160a01b031660009081526004602052604090205490565b604051600081526020016100ce565b6100c16102aa565b6100ea61018f3660046109be565b6102b9565b6100ea6101a23660046109be565b610339565b6100fe6101b536600461094f565b610347565b6060600080546101c990610aab565b80601f01602080910402602001604051908101604052809291908181526020018280546101f590610aab565b80156102425780601f1061021757610100808354040283529160200191610242565b820191906000526020600020905b81548152906001019060200180831161022557829003601f168201915b5050505050905090565b60003361025a818585610372565b5060019392505050565b600033610272858285610496565b61027d858585610510565b506001949350505050565b60003361025a81858561029b8383610347565b6102a59190610a37565b610372565b6060600180546101c990610aab565b600033816102c78286610347565b90508381101561032c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61027d8286868403610372565b60003361025a818585610510565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6001600160a01b0383166103d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610323565b6001600160a01b0382166104355760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610323565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006104a28484610347565b9050600019811461050a57818110156104fd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610323565b61050a8484848403610372565b50505050565b6001600160a01b0383166105745760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610323565b61059e7f00000000000000000000000075c33efc17c3f2449c4df2bc4356aab2c9b701938461072c565b6001600160a01b038316600090815260046020526040902054818110156106165760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610323565b6001600160a01b038085166000908152600460209081526040808320868603905592861682528282208054860190558251808401909352600783526662696774696d6560c81b908301529061066f9060019081846108d8565b905080156106d8576040805160608082526007908201526662696774696d6560c81b6080820152600160208201526001600160a01b0387168183015290517f1c7ec4485ea8bf18e646e5381f7318f45423199ed371307bc9171a4242f273359181900360a00190a15b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161071d91815260200190565b60405180910390a35050505050565b60035460ff161561077f5760405162461bcd60e51b815260206004820152601860248201527f5265656e7472616e742063616c6c2064657465637465642100000000000000006044820152606401610323565b6003805460ff19166001179055604080518082018252601a81527f616c6c6f77616e636528616464726573732c6164647265737329000000000000602082015290516001600160a01b038381166024830152600060448301819052918291861690849060640160408051601f198184030181529082905291610800916109e8565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161083791906109e8565b6000604051808303816000865af19150503d8060008114610874576040519150601f19603f3d011682016040523d82523d6000602084013e610879565b606091505b50915091508161089a576000610890816001610a5d565b50505050506108ca565b60006108a7826020015190565b9050806108b757505050506108ca565b6000858152600460205260409020555050505b50506003805460ff19169055565b60008280156108e45750815b80156108f8575067ffffffffffffffff8516155b1561090557506001610909565b5060005b949350505050565b80356001600160a01b038116811461092857600080fd5b919050565b60006020828403121561093f57600080fd5b61094882610911565b9392505050565b6000806040838503121561096257600080fd5b61096b83610911565b915061097960208401610911565b90509250929050565b60008060006060848603121561099757600080fd5b6109a084610911565b92506109ae60208501610911565b9150604084013590509250925092565b600080604083850312156109d157600080fd5b6109da83610911565b946020939093013593505050565b600082516109fa818460208701610a7f565b9190910192915050565b6020815260008251806020840152610a23816040850160208701610a7f565b601f01601f19169190910160400192915050565b60008219821115610a5857634e487b7160e01b600052601160045260246000fd5b500190565b600082610a7a57634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015610a9a578181015183820152602001610a82565b8381111561050a5750506000910152565b600181811c90821680610abf57607f821691505b60208210811415610ae057634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212202e58d51eae63119678bf947d636f0ec189e1d1e017fa03466530330c95df0adc64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000075c33efc17c3f2449c4df2bc4356aab2c9b70193000000000000000000000000000000000000000000000000000000000000000544652e466900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044445464900000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): De.Fi
Arg [1] : symbol_ (string): DEFI
Arg [2] : xdc_ (address): 0x75C33efc17c3f2449c4DF2bc4356AaB2c9B70193
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000075c33efc17c3f2449c4df2bc4356aab2c9b70193
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 44652e4669000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4445464900000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.