Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 79 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 17313620 | 466 days ago | IN | 0 ETH | 0.0018883 | ||||
Burn | 17222054 | 479 days ago | IN | 0 ETH | 0.00412056 | ||||
Transfer | 17125373 | 493 days ago | IN | 0 ETH | 0.00286416 | ||||
Burn | 17037335 | 505 days ago | IN | 0 ETH | 0.00199475 | ||||
Burn | 17037328 | 505 days ago | IN | 0 ETH | 0.00195497 | ||||
Burn | 17037322 | 505 days ago | IN | 0 ETH | 0.002053 | ||||
Burn | 17037073 | 505 days ago | IN | 0 ETH | 0.00181582 | ||||
Burn | 17037036 | 505 days ago | IN | 0 ETH | 0.00213676 | ||||
Burn | 17037019 | 505 days ago | IN | 0 ETH | 0.00240091 | ||||
Burn | 17034125 | 506 days ago | IN | 0 ETH | 0.00200139 | ||||
Burn | 17034115 | 506 days ago | IN | 0 ETH | 0.00186216 | ||||
Burn | 17034115 | 506 days ago | IN | 0 ETH | 0.00186216 | ||||
Burn | 17034070 | 506 days ago | IN | 0 ETH | 0.00174516 | ||||
Transfer | 17032906 | 506 days ago | IN | 0 ETH | 0.00204198 | ||||
Burn | 16996700 | 511 days ago | IN | 0 ETH | 0.00240299 | ||||
Burn | 16996694 | 511 days ago | IN | 0 ETH | 0.00145856 | ||||
Transfer | 16984471 | 513 days ago | IN | 0 ETH | 0.00109725 | ||||
Transfer | 16984102 | 513 days ago | IN | 0 ETH | 0.00189969 | ||||
Transfer | 16981397 | 513 days ago | IN | 0 ETH | 0.00156306 | ||||
Burn | 16969212 | 515 days ago | IN | 0 ETH | 0.00217625 | ||||
Burn | 16968080 | 515 days ago | IN | 0 ETH | 0.00137393 | ||||
Burn | 16968072 | 515 days ago | IN | 0 ETH | 0.00144189 | ||||
Burn | 16968042 | 515 days ago | IN | 0 ETH | 0.00151356 | ||||
Burn | 16967935 | 515 days ago | IN | 0 ETH | 0.00155068 | ||||
Burn | 16862405 | 530 days ago | IN | 0 ETH | 0.00114952 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x635bf38E...3eCba9203 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DaoToken
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
///SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; import "openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "./dao.sol"; contract DaoToken is ERC20, Ownable { using SafeERC20 for IERC20Metadata; LockingDAO public dao; address public multisig; IERC20Metadata public stablecoin; uint256 public mintOpenUntilTimestamp; uint256 public mintOpenFromTimestamp; uint8 private _decimals; uint256 public maxSupply; constructor( string memory _name, string memory _symbol, address _dao, address _stablecoin, uint256 _maxSupply ) ERC20(_name, _symbol) { dao = LockingDAO(_dao); multisig = address(dao.multisig()); stablecoin = IERC20Metadata(_stablecoin); _decimals = stablecoin.decimals(); maxSupply = _maxSupply * 10**_decimals; } function decimals() public view override returns (uint8){ return _decimals; } function setMintingTimestamp(uint256 _mintOpenFromTimestamp, uint256 _mintOpenUntilTimestamp) public onlyOwner { require(mintOpenFromTimestamp == 0 && mintOpenUntilTimestamp == 0, "Minting timestamps already set"); mintOpenFromTimestamp = _mintOpenFromTimestamp; mintOpenUntilTimestamp = _mintOpenUntilTimestamp; } function setNewStablecoin(address _newToken) public onlyOwner { uint256 intMaxSupply = maxSupply / 10**_decimals; // set new stablecoin address stablecoin = IERC20Metadata(_newToken); // extra configs _decimals = stablecoin.decimals(); maxSupply = intMaxSupply * 10**_decimals; // this will keep the "real" amount of max supply the same } function lockToVote(address _user, uint256 _amount) public { require(msg.sender == address(dao), "Only DAO contract can lock tokens for voting"); _transfer(_user, msg.sender, _amount); // we transfer to the multisig to keep max suppy constant and not burning } function mint(uint256 _amount) public { require(block.timestamp <= mintOpenUntilTimestamp && block.timestamp >= mintOpenFromTimestamp , "Minting not open"); //require(totalSupply() + _amount <= maxSupply, "max supply reached"); uint256 stableAmount = _amount / 1000; // RATIO TO BE 1000 tokens : 1 stablecoin stablecoin.safeTransferFrom(msg.sender, multisig, stableAmount); _mint(msg.sender, _amount); } function burn(uint256 _amount) public { uint256 transferAmount = stablecoin.balanceOf(multisig) * _amount / totalSupply(); // proportional to total supply of tokens _burn(msg.sender, _amount); stablecoin.safeTransferFrom(multisig, msg.sender, transferAmount); } function transfer(address to, uint256 amount) public override returns(bool) { // If tokens are transfered to the contract, automatic burn if(to == address(this)) { burn(amount); } else { _transfer(msg.sender, to, amount); } return true; } }
///SPDX-License-Identifier: UNLICENSED import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; pragma solidity 0.8.13; contract MultiSigWallet { using SafeERC20 for IERC20; event SubmitTransaction( address indexed owner, uint256 indexed txIndex, address indexed token, address user, uint256 amount ); event ConfirmTransaction(address indexed owner, uint256 indexed txIndex); event RevokeConfirmation(address indexed owner, uint256 indexed txIndex); event ExecuteTransaction(address indexed owner, uint256 indexed txIndex); address[] public owners; address[] public requiredOwners; mapping(address => bool) public isOwner; uint256 public numConfirmationsRequired; bool public init; struct Transaction { address token; address user; uint256 amount; bool executed; uint256 numConfirmations; } // mapping from tx index => owner => bool mapping(uint256 => mapping(address => bool)) public isConfirmed; Transaction[] public transactions; modifier onlyOwner() { require(isOwner[msg.sender], "not owner"); _; } modifier txExists(uint256 _txIndex) { require(_txIndex < transactions.length, "tx does not exist"); _; } modifier notExecuted(uint256 _txIndex) { require(!transactions[_txIndex].executed, "tx already executed"); _; } modifier notConfirmed(uint256 _txIndex) { require(!isConfirmed[_txIndex][msg.sender], "tx already confirmed"); _; } constructor(address[] memory _owners, bool[] memory _requiredOwner, uint256 _numConfirmationsRequired) { require(_owners.length > 0, "owners required"); require(_owners.length == _requiredOwner.length, "owner list and required list length"); require( _numConfirmationsRequired > 0 && _numConfirmationsRequired <= _owners.length, "invalid number of required confirmations" ); for (uint256 i = 0; i < _owners.length; i++) { address owner = _owners[i]; require(owner != address(0), "invalid owner"); require(!isOwner[owner], "owner not unique"); isOwner[owner] = true; bool ownerRequired = _requiredOwner[i]; if(ownerRequired){ requiredOwners.push(owner); } owners.push(owner); } numConfirmationsRequired = _numConfirmationsRequired; require(_numConfirmationsRequired >= requiredOwners.length, "numConfirmationsRequired >= requiredOwners.length"); } function initialise (address _tokenToApprove, address _userToApprove) public onlyOwner { require(!init, "Already initialised"); IERC20(_tokenToApprove).safeApprove(_userToApprove, 2**256 - 1); //approve max init = true; } function submitTransaction( address _token, address _user, uint256 _amount ) public onlyOwner returns (uint256 txIndex) { txIndex = transactions.length; transactions.push( Transaction({ token: _token, user: _user, amount: _amount, executed: false, numConfirmations: 0 }) ); emit SubmitTransaction(msg.sender, txIndex, _token, _user, _amount); } function confirmTransaction(uint256 _txIndex) public onlyOwner txExists(_txIndex) notExecuted(_txIndex) notConfirmed(_txIndex) { Transaction storage transaction = transactions[_txIndex]; transaction.numConfirmations += 1; isConfirmed[_txIndex][msg.sender] = true; emit ConfirmTransaction(msg.sender, _txIndex); } function executeTransaction(uint256 _txIndex) public txExists(_txIndex) notExecuted(_txIndex) { Transaction storage transaction = transactions[_txIndex]; require( transaction.numConfirmations >= numConfirmationsRequired, "Not enough confirmations" ); for(uint256 i = 0; i < requiredOwners.length; i++ ){ require(isConfirmed[_txIndex][requiredOwners[i]], "required owner not signed"); } transaction.executed = true; emit ExecuteTransaction(msg.sender, _txIndex); IERC20(transaction.token).safeTransfer( transaction.user, transaction.amount ); } function revokeConfirmation(uint256 _txIndex) public onlyOwner txExists(_txIndex) notExecuted(_txIndex) { Transaction storage transaction = transactions[_txIndex]; require(isConfirmed[_txIndex][msg.sender], "tx not confirmed"); transaction.numConfirmations -= 1; isConfirmed[_txIndex][msg.sender] = false; emit RevokeConfirmation(msg.sender, _txIndex); } function getTransactionCount() public view returns (uint256) { return transactions.length; } function getTransaction(uint256 _txIndex) public view returns ( address token, address user, uint256 amount, bool executed, uint256 numConfirmations ) { Transaction storage transaction = transactions[_txIndex]; return ( transaction.token, transaction.user, transaction.amount, transaction.executed, transaction.numConfirmations ); } }
///SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; import "./multisig.sol"; import "./DaoToken.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; contract LockingDAO is Ownable { MultiSigWallet public multisig; DaoToken public daoToken; address public excludedAddress; address[] private initialOwners; bool public voting; mapping(address => uint256) public lockedTokens; mapping(uint256 => uint256) public votesForProposal; uint256 public currentProposal; uint256 public maxExcludedAddressChanges; uint256 public currentExcludedAddressChanges; constructor( address[] memory _initialOwners, address _excludedAddress ) { initialOwners = _initialOwners; initialOwners.push(address(this)); excludedAddress = _excludedAddress; maxExcludedAddressChanges = 10; uint size = initialOwners.length; bool [] memory initialOwnersRequired = new bool[](size); initialOwnersRequired[initialOwnersRequired.length - 1] = true; // the last one multisig = new MultiSigWallet(initialOwners, initialOwnersRequired, initialOwners.length - 1); } function setDaoToken (address _daoToken) public onlyOwner { require(address(daoToken) == address(0), "Token already configured"); daoToken = DaoToken(_daoToken); multisig.initialise(address(daoToken.stablecoin()), address(daoToken)); } function setExcludedAddress (address _excludedAddress) public onlyOwner { require(maxExcludedAddressChanges > currentExcludedAddressChanges, "excluded address max changes performed"); excludedAddress = _excludedAddress; currentExcludedAddressChanges++; } function createProposal( address _tokenAddress, uint256 _amount, address _user ) public onlyOwner { require(!voting, "There is a vote already happening"); voting = true; currentProposal = multisig.submitTransaction( _tokenAddress, _user, _amount ); } function voteCurrent(uint256 _amount) public { require(voting, "No voting taking place"); require(excludedAddress != msg.sender, "No voting for this address"); lockedTokens[msg.sender] += _amount; votesForProposal[currentProposal] += _amount; daoToken.lockToVote(msg.sender, _amount); } function claimTokens(uint256 _amount) public { require(!voting, "Can't claim during vote"); require( lockedTokens[msg.sender] >= _amount, "Not enough locked tokens" ); lockedTokens[msg.sender] -= _amount; bool success = daoToken.transfer(msg.sender, _amount); require (success, "Could not complete transfer"); } function confirmToMultisig() public onlyOwner{ require(voting, "No voting taking place"); require( currentProposalOverThreshold(), "Not enough votes to confirm transaction" ); voting = false; multisig.confirmTransaction(currentProposal); } function stopVoting() public onlyOwner { voting = false; } function votingThreshold() public view returns (uint256) { return daoToken.totalSupply() / 2; // 50% } function currentProposalOverThreshold() public view returns (bool) { return votesForProposal[currentProposal] > votingThreshold(); } }
// 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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @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 Contracts guidelines: functions revert * instead 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, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @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 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 Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "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":"address","name":"_dao","type":"address"},{"internalType":"address","name":"_stablecoin","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dao","outputs":[{"internalType":"contract LockingDAO","name":"","type":"address"}],"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":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"lockToVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintOpenFromTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintOpenUntilTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multisig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"_mintOpenFromTimestamp","type":"uint256"},{"internalType":"uint256","name":"_mintOpenUntilTimestamp","type":"uint256"}],"name":"setMintingTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newToken","type":"address"}],"name":"setNewStablecoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stablecoin","outputs":[{"internalType":"contract IERC20Metadata","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063715018a6116100de578063a0712d6811610097578063d5abeb0111610071578063d5abeb011461043c578063dd62ed3e1461045a578063e9cbd8221461048a578063f2fde38b146104a857610173565b8063a0712d68146103c0578063a457c2d7146103dc578063a9059cbb1461040c57610173565b8063715018a61461032657806379aa5c2c146103305780638da5cb5b1461034c578063914473581461036a57806395d89b41146103865780639d3a52a2146103a457610173565b8063395093511161013057806339509351146102505780634162169f1461028057806342966c681461029e5780634783c35b146102ba5780634f74f0ac146102d857806370a08231146102f657610173565b806306fdde0314610178578063095ea7b31461019657806318160ddd146101c65780631ecaa38c146101e457806323b872dd14610202578063313ce56714610232575b600080fd5b6101806104c4565b60405161018d9190611c66565b60405180910390f35b6101b060048036038101906101ab9190611d21565b610556565b6040516101bd9190611d7c565b60405180910390f35b6101ce610579565b6040516101db9190611da6565b60405180910390f35b6101ec610583565b6040516101f99190611da6565b60405180910390f35b61021c60048036038101906102179190611dc1565b610589565b6040516102299190611d7c565b60405180910390f35b61023a6105b8565b6040516102479190611e30565b60405180910390f35b61026a60048036038101906102659190611d21565b6105cf565b6040516102779190611d7c565b60405180910390f35b610288610606565b6040516102959190611eaa565b60405180910390f35b6102b860048036038101906102b39190611ec5565b61062c565b005b6102c261078a565b6040516102cf9190611f01565b60405180910390f35b6102e06107b0565b6040516102ed9190611da6565b60405180910390f35b610310600480360381019061030b9190611f1c565b6107b6565b60405161031d9190611da6565b60405180910390f35b61032e6107fe565b005b61034a60048036038101906103459190611d21565b610886565b005b610354610925565b6040516103619190611f01565b60405180910390f35b610384600480360381019061037f9190611f49565b61094f565b005b61038e610a30565b60405161039b9190611c66565b60405180910390f35b6103be60048036038101906103b99190611f1c565b610ac2565b005b6103da60048036038101906103d59190611ec5565b610c88565b005b6103f660048036038101906103f19190611d21565b610d6c565b6040516104039190611d7c565b60405180910390f35b61042660048036038101906104219190611d21565b610de3565b6040516104339190611d7c565b60405180910390f35b610444610e3c565b6040516104519190611da6565b60405180910390f35b610474600480360381019061046f9190611f89565b610e42565b6040516104819190611da6565b60405180910390f35b610492610ec9565b60405161049f9190611fea565b60405180910390f35b6104c260048036038101906104bd9190611f1c565b610eef565b005b6060600380546104d390612034565b80601f01602080910402602001604051908101604052809291908181526020018280546104ff90612034565b801561054c5780601f106105215761010080835404028352916020019161054c565b820191906000526020600020905b81548152906001019060200180831161052f57829003601f168201915b5050505050905090565b600080610561610fe6565b905061056e818585610fee565b600191505092915050565b6000600254905090565b60095481565b600080610594610fe6565b90506105a18582856111b7565b6105ac858585611243565b60019150509392505050565b6000600b60009054906101000a900460ff16905090565b6000806105da610fe6565b90506105fb8185856105ec8589610e42565b6105f69190612094565b610fee565b600191505092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610636610579565b82600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016106b49190611f01565b602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f591906120ff565b6106ff919061212c565b61070991906121b5565b905061071533836114c2565b610786600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611698909392919063ffffffff16565b5050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610806610fe6565b73ffffffffffffffffffffffffffffffffffffffff16610824610925565b73ffffffffffffffffffffffffffffffffffffffff161461087a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087190612232565b60405180910390fd5b6108846000611721565b565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d906122c4565b60405180910390fd5b610921823383611243565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610957610fe6565b73ffffffffffffffffffffffffffffffffffffffff16610975610925565b73ffffffffffffffffffffffffffffffffffffffff16146109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c290612232565b60405180910390fd5b6000600a541480156109df57506000600954145b610a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1590612330565b60405180910390fd5b81600a81905550806009819055505050565b606060048054610a3f90612034565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6b90612034565b8015610ab85780601f10610a8d57610100808354040283529160200191610ab8565b820191906000526020600020905b815481529060010190602001808311610a9b57829003601f168201915b5050505050905090565b610aca610fe6565b73ffffffffffffffffffffffffffffffffffffffff16610ae8610925565b73ffffffffffffffffffffffffffffffffffffffff1614610b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3590612232565b60405180910390fd5b6000600b60009054906101000a900460ff16600a610b5c9190612483565b600c54610b6991906121b5565b905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3d91906124fa565b600b60006101000a81548160ff021916908360ff160217905550600b60009054906101000a900460ff16600a610c739190612483565b81610c7e919061212c565b600c819055505050565b6009544211158015610c9c5750600a544210155b610cdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd290612573565b60405180910390fd5b60006103e882610ceb91906121b5565b9050610d5e33600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611698909392919063ffffffff16565b610d6833836117e7565b5050565b600080610d77610fe6565b90506000610d858286610e42565b905083811015610dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc190612605565b60405180910390fd5b610dd78286868403610fee565b60019250505092915050565b60003073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e2657610e218261062c565b610e32565b610e31338484611243565b5b6001905092915050565b600c5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ef7610fe6565b73ffffffffffffffffffffffffffffffffffffffff16610f15610925565b73ffffffffffffffffffffffffffffffffffffffff1614610f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6290612232565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd190612697565b60405180910390fd5b610fe381611721565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361105d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105490612729565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c3906127bb565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516111aa9190611da6565b60405180910390a3505050565b60006111c38484610e42565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461123d578181101561122f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122690612827565b60405180910390fd5b61123c8484848403610fee565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a9906128b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611321576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113189061294b565b60405180910390fd5b61132c838383611946565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156113b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a9906129dd565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114459190612094565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a99190611da6565b60405180910390a36114bc84848461194b565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890612a6f565b60405180910390fd5b61153d82600083611946565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90612b01565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461161a9190612b21565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161167f9190611da6565b60405180910390a36116938360008461194b565b505050565b61171b846323b872dd60e01b8585856040516024016116b993929190612b55565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611950565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184d90612bd8565b60405180910390fd5b61186260008383611946565b80600260008282546118749190612094565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118c99190612094565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161192e9190611da6565b60405180910390a36119426000838361194b565b5050565b505050565b505050565b60006119b2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a179092919063ffffffff16565b9050600081511115611a1257808060200190518101906119d29190612c24565b611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0890612cc3565b60405180910390fd5b5b505050565b6060611a268484600085611a2f565b90509392505050565b606082471015611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b90612d55565b60405180910390fd5b611a7d85611b43565b611abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab390612dc1565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ae59190612e28565b60006040518083038185875af1925050503d8060008114611b22576040519150601f19603f3d011682016040523d82523d6000602084013e611b27565b606091505b5091509150611b37828286611b66565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611b7657829050611bc6565b600083511115611b895782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbd9190611c66565b60405180910390fd5b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611c07578082015181840152602081019050611bec565b83811115611c16576000848401525b50505050565b6000601f19601f8301169050919050565b6000611c3882611bcd565b611c428185611bd8565b9350611c52818560208601611be9565b611c5b81611c1c565b840191505092915050565b60006020820190508181036000830152611c808184611c2d565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611cb882611c8d565b9050919050565b611cc881611cad565b8114611cd357600080fd5b50565b600081359050611ce581611cbf565b92915050565b6000819050919050565b611cfe81611ceb565b8114611d0957600080fd5b50565b600081359050611d1b81611cf5565b92915050565b60008060408385031215611d3857611d37611c88565b5b6000611d4685828601611cd6565b9250506020611d5785828601611d0c565b9150509250929050565b60008115159050919050565b611d7681611d61565b82525050565b6000602082019050611d916000830184611d6d565b92915050565b611da081611ceb565b82525050565b6000602082019050611dbb6000830184611d97565b92915050565b600080600060608486031215611dda57611dd9611c88565b5b6000611de886828701611cd6565b9350506020611df986828701611cd6565b9250506040611e0a86828701611d0c565b9150509250925092565b600060ff82169050919050565b611e2a81611e14565b82525050565b6000602082019050611e456000830184611e21565b92915050565b6000819050919050565b6000611e70611e6b611e6684611c8d565b611e4b565b611c8d565b9050919050565b6000611e8282611e55565b9050919050565b6000611e9482611e77565b9050919050565b611ea481611e89565b82525050565b6000602082019050611ebf6000830184611e9b565b92915050565b600060208284031215611edb57611eda611c88565b5b6000611ee984828501611d0c565b91505092915050565b611efb81611cad565b82525050565b6000602082019050611f166000830184611ef2565b92915050565b600060208284031215611f3257611f31611c88565b5b6000611f4084828501611cd6565b91505092915050565b60008060408385031215611f6057611f5f611c88565b5b6000611f6e85828601611d0c565b9250506020611f7f85828601611d0c565b9150509250929050565b60008060408385031215611fa057611f9f611c88565b5b6000611fae85828601611cd6565b9250506020611fbf85828601611cd6565b9150509250929050565b6000611fd482611e77565b9050919050565b611fe481611fc9565b82525050565b6000602082019050611fff6000830184611fdb565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061204c57607f821691505b60208210810361205f5761205e612005565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061209f82611ceb565b91506120aa83611ceb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156120df576120de612065565b5b828201905092915050565b6000815190506120f981611cf5565b92915050565b60006020828403121561211557612114611c88565b5b6000612123848285016120ea565b91505092915050565b600061213782611ceb565b915061214283611ceb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561217b5761217a612065565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006121c082611ceb565b91506121cb83611ceb565b9250826121db576121da612186565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061221c602083611bd8565b9150612227826121e6565b602082019050919050565b6000602082019050818103600083015261224b8161220f565b9050919050565b7f4f6e6c792044414f20636f6e74726163742063616e206c6f636b20746f6b656e60008201527f7320666f7220766f74696e670000000000000000000000000000000000000000602082015250565b60006122ae602c83611bd8565b91506122b982612252565b604082019050919050565b600060208201905081810360008301526122dd816122a1565b9050919050565b7f4d696e74696e672074696d657374616d707320616c7265616479207365740000600082015250565b600061231a601e83611bd8565b9150612325826122e4565b602082019050919050565b600060208201905081810360008301526123498161230d565b9050919050565b60008160011c9050919050565b6000808291508390505b60018511156123a75780860481111561238357612382612065565b5b60018516156123925780820291505b80810290506123a085612350565b9450612367565b94509492505050565b6000826123c0576001905061247c565b816123ce576000905061247c565b81600181146123e457600281146123ee5761241d565b600191505061247c565b60ff841115612400576123ff612065565b5b8360020a91508482111561241757612416612065565b5b5061247c565b5060208310610133831016604e8410600b84101617156124525782820a90508381111561244d5761244c612065565b5b61247c565b61245f848484600161235d565b9250905081840481111561247657612475612065565b5b81810290505b9392505050565b600061248e82611ceb565b915061249983611e14565b92506124c67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846123b0565b905092915050565b6124d781611e14565b81146124e257600080fd5b50565b6000815190506124f4816124ce565b92915050565b6000602082840312156125105761250f611c88565b5b600061251e848285016124e5565b91505092915050565b7f4d696e74696e67206e6f74206f70656e00000000000000000000000000000000600082015250565b600061255d601083611bd8565b915061256882612527565b602082019050919050565b6000602082019050818103600083015261258c81612550565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006125ef602583611bd8565b91506125fa82612593565b604082019050919050565b6000602082019050818103600083015261261e816125e2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612681602683611bd8565b915061268c82612625565b604082019050919050565b600060208201905081810360008301526126b081612674565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612713602483611bd8565b915061271e826126b7565b604082019050919050565b6000602082019050818103600083015261274281612706565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006127a5602283611bd8565b91506127b082612749565b604082019050919050565b600060208201905081810360008301526127d481612798565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000612811601d83611bd8565b915061281c826127db565b602082019050919050565b6000602082019050818103600083015261284081612804565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006128a3602583611bd8565b91506128ae82612847565b604082019050919050565b600060208201905081810360008301526128d281612896565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612935602383611bd8565b9150612940826128d9565b604082019050919050565b6000602082019050818103600083015261296481612928565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006129c7602683611bd8565b91506129d28261296b565b604082019050919050565b600060208201905081810360008301526129f6816129ba565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000612a59602183611bd8565b9150612a64826129fd565b604082019050919050565b60006020820190508181036000830152612a8881612a4c565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000612aeb602283611bd8565b9150612af682612a8f565b604082019050919050565b60006020820190508181036000830152612b1a81612ade565b9050919050565b6000612b2c82611ceb565b9150612b3783611ceb565b925082821015612b4a57612b49612065565b5b828203905092915050565b6000606082019050612b6a6000830186611ef2565b612b776020830185611ef2565b612b846040830184611d97565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000612bc2601f83611bd8565b9150612bcd82612b8c565b602082019050919050565b60006020820190508181036000830152612bf181612bb5565b9050919050565b612c0181611d61565b8114612c0c57600080fd5b50565b600081519050612c1e81612bf8565b92915050565b600060208284031215612c3a57612c39611c88565b5b6000612c4884828501612c0f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612cad602a83611bd8565b9150612cb882612c51565b604082019050919050565b60006020820190508181036000830152612cdc81612ca0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612d3f602683611bd8565b9150612d4a82612ce3565b604082019050919050565b60006020820190508181036000830152612d6e81612d32565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612dab601d83611bd8565b9150612db682612d75565b602082019050919050565b60006020820190508181036000830152612dda81612d9e565b9050919050565b600081519050919050565b600081905092915050565b6000612e0282612de1565b612e0c8185612dec565b9350612e1c818560208601611be9565b80840191505092915050565b6000612e348284612df7565b91508190509291505056fea2646970667358221220e9933eb14fb5c8534bf1fdf511992496bb6ad8fe4b80ca59b8650cc91fff629c64736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.