Aprovação de token (allowance)

Também conhecido como: Token approval (allowance), permissão de gasto, allowance

Uma aprovação de token (definição de trabalho) é uma permissão on-chain que deixa outro endereço, o spender, movimentar tokens do saldo do detentor até um valor chamado allowance. No padrão ERC-20, approve permite que o spender saque da conta do detentor várias vezes até esse valor, e chamá-la de novo sobrescreve a allowance atual; allowance retorna quanto o spender ainda pode sacar. O contrato da USDC da Circle implementa as mesmas funções approve e allowance.

O que dizem as fontes

FonteCitaçãoLink
EIP-20: approve"Allows _spender to withdraw from your account multiple times, up to the _value amount. If this function is called again it overwrites the current allowance with _value."eips.ethereum.org
EIP-20: allowance"Returns the amount which _spender is still allowed to withdraw from _owner."eips.ethereum.org
Código-fonte do FiatTokenV1 da Circle: approve"@notice Sets a fiat token allowance for a spender to spend on behalf of the caller."GitHub
Código-fonte do FiatTokenV1 da Circle: allowance"@notice Gets the remaining amount of fiat tokens a spender is allowed to transfer on behalf of the token owner."GitHub

As citações são reproduzidas no idioma original.

Termos relacionados

Veja também

Conferido com as fontes em 2026-11-01.

revain.org

Fontes

Atualizado: · Versão Markdown