QVEtoken
Summarize
QVEtoken
이 컨트랙트는 ERC20Burnable, Ownable, 및 Security를 확장합니다. 이름은 "QVE"이고, 심볼은 "QVE"입니다. 초기 공급량은 0입니다.
Documentation Detail
constructor
없음
없음
컨트랙트 생성시 초기 공급량 0의 토큰을 msg.sender에게 발행
public
normal_transfer
address from, address target, uint256 amount
bool
토큰을 다른 주소로 전송. TransferEvent 발생
public
normal_burn
address from, uint256 amount
bool
특정 주소의 토큰을 소각. BurnEvent 발생
public
normal_mint
address account, uint256 amount
bool
특정 주소에 토큰을 발행. MintEvent 발생
public
이벤트
TransferEvent
address from, address to, uint256 amount
토큰이 전송될 때 발생
BurnEvent
address from, uint256 amount
토큰이 소각될 때 발생
MintEvent
address to, uint256 amount
토큰이 발행될 때 발생
기타 주의사항:
Ownable: 이 확장 기능을 사용하면 몇몇 함수는 오직 컨트랙트의 소유자만 호출할 수 있습니다. 하지만 현재 주어진 코드에서는 특별히 소유자만 실행할 수 있는 함수를 정의하지 않았습니다.
Security:
NoReEntrancy수정자를 사용하여 재진입 공격을 방지하려고 시도합니다. 현재normal_transfer와normal_mint함수에 이 수정자를 적용하였습니다.기본적인 ERC20, ERC20Burnable의 함수들 (예:
transfer,approve,balanceOf등)은 이미 상속받았기 때문에 별도로 여기에 명시하지 않았습니다.
단, 컨트랙트의 기능 및 로직이 커스터마이징된 점을 염두에 두고 코드를 분석하는 것이 중요합니다.
Last updated