지갑과 보안

Exact-amount approval

정의

An exact-amount approval sets spending permission to a chosen transaction amount rather than granting a larger standing allowance.

이 항목은 영어로 표시됩니다.

Exact-amount approval의 작동 방식

An exact-amount approval sets spending permission to a chosen transaction amount rather than granting a larger standing allowance.

Limit an authorization to the amount your intended action needs.

예시

A swap needs 32 tokens while the proposed allowance is 120: 120 - 32 = 88 tokens of excess authorization to reconsider. This exact-amount approval example uses hypothetical inputs.

자주 하는 실수

  • Assuming a smaller allowance makes a malicious contract safe.