CryptoKeySafe CK bracket markCRYPTOKEYSAFE
블로그로 돌아가기
DeFi 보안읽는 데 약 2분

토큰 승인이 허용하는 권한

권한을 확인하거나 취소하기 전에 ERC-20 사용 한도, 서명된 permit, ERC-721 운영자 권한을 이해합니다.

전체 본문은 영어로 제공됩니다.

ERC-20 allowance

An ERC-20 approval specifies a spender and an amount for one token contract. A spender can call transferFrom within the current allowance, subject to the contract's rules. An unlimited allowance for that token contract can persist across visits until it changes.

ERC-2612 and ERC-721 permissions

Under ERC-2612, a compatible token can accept a signed permit to set an allowance. Under ERC-721, setApprovalForAll can authorize one operator to manage the owner's NFTs within that token contract. The scope depends on the standard and permission requested.

Find and remove unused permissions

Review approvals on the networks and accounts you actually use. An approval manager can display the spender and allowance and help you submit a revocation where supported. Check that the network confirms the change.

Limit the scope before you sign

When the application and token support it, choose an amount appropriate to the intended operation and review the spender address. A recorded allowance persists after you disconnect your wallet. Read the transaction or message request and check which address it authorizes.