
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


1·Take
Step one declares a parameter named token, letting the caller name the ERC-20 contract at execution time rather than hardcoding it.
2·Take
Next comes a second parameter, spender_address, so the caller supplies at runtime which spender the allowance concerns.
3·Revoke approval
Using the token in slot 0.0 and the spender in slot 1.0, this sets that spender's allowance from the socket back to zero, cutting off its ability to move the token.