Revoke approval
Revoke approval

Ethereum Virtual Machine · Acts onchain

Sets a spender's ERC-20 allowance from the socket back to zero. The token's approve is called with zero for the spender; the options list only spenders with outstanding approvals on the chosen token. Reach for it to close an allowance a strategy opened earlier in the same transaction, or in a cleanup plug that removes standing approvals from contracts no longer in use.

Revoke Spending Approval

plug
evm
3actions
  1. 1·Take

    Take declares a caller-supplied parameter named token, whose value fills slot 0.0 at execution.

  2. 2·Take

    Next, a second parameter, spender_address, is collected from the caller and lands in slot 1.0.

  3. 3·Revoke approval

    Using the token from slot 0.0 and the spender from slot 1.0, this step sets that spender's ERC-20 allowance from the socket back to zero.

Take
Take
Revoke approval to spend from
  • Revoke Spending Approval

    plug
    evm