2022-03-16 15:32:22 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0
|
2024-05-29 12:29:55 +00:00
|
|
|
pragma solidity ^0.8.25;
|
2022-03-16 15:32:22 +00:00
|
|
|
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
|
|
|
|
|
|
contract SLVToken is ERC20 {
|
|
|
|
uint256 private countA;
|
|
|
|
uint256 private countB;
|
|
|
|
|
2024-05-29 12:29:55 +00:00
|
|
|
constructor() ERC20("Silver", "SLV") {
|
|
|
|
/* _mint(address(this), 1); */
|
|
|
|
}
|
2022-03-16 15:32:22 +00:00
|
|
|
|
|
|
|
function incrementCountA() public {
|
|
|
|
countA = countA + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
function incrementCountB() public {
|
|
|
|
countB = countB + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
receive() external payable {}
|
|
|
|
|
|
|
|
function destroy() public {
|
2024-05-29 12:29:55 +00:00
|
|
|
(bool ok, ) = payable(msg.sender).call{value: address(this).balance}("");
|
|
|
|
require(ok, "ETH transfer failed");
|
|
|
|
|
|
|
|
/* _burn(address(this), balanceOf(address(this))); */
|
2022-03-16 15:32:22 +00:00
|
|
|
}
|
|
|
|
}
|