Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Allowance

What is an allowance?

Before a swap can execute on-chain, an approval must be sent to the swap contract, permitting it to move a specified amount of tokens from your wallet. The approval itself doesn't move any funds — the amount it permits is the allowance.

Safeheron approves the exact amount of each swap. Unlimited allowances are never used.

Why do residual allowances occur?

Normally the allowance is fully consumed by the transfer that follows, leaving nothing behind.

If the approval transaction succeeds on-chain but the transfer that follows fails, an unused allowance is left on-chain. It doesn't put your assets at risk, but it is still a live on-chain approval. You can choose to revoke it, or leave it to be reused by a later swap in the same direction.

How to manage allowances

To view and revoke allowances, go to Web Console > Management > Allowance.

💡 Can't find this feature? It requires activation — please contact the Safeheron Support team.

The page only lists allowances that are currently live; those already consumed or revoked are no longer shown. For each one you can see the approval time, asset wallet, source application, authorized contract, allowance amount, expiry, chain and type.

Only members with transaction permissions can initiate a revocation.

Revoking an allowance

The steps are as follows:

Find the allowance: locate it in the list. Residual allowances left by a failed swap are flagged accordingly.

Submit the revocation: click "Revoke", review the warning in the dialog, and submit.

Approve in the app: the revocation enters the approval flow; the transaction only goes on-chain once an approver approves it in the app. While it is pending, the allowance shows as "Revocation pending approval".

Revocation complete: once the transaction succeeds on-chain, the allowance is removed from the list. If it fails, the list shows the reason and you can submit the revocation again.

Note: Revoking clears the entire allowance held by that contract for that asset on that chain, not just the portion from one particular swap. Before submitting, make sure no in-progress swap depends on it.

FAQ

Q: Does revoking an allowance move my funds?

A: No. Revoking is an on-chain operation that doesn't transfer any assets out of your wallet. It is still an on-chain transaction, though, so it consumes a network fee paid in that wallet's native token — make sure the wallet holds enough.

Q: Why is the Revoke button greyed out?

A: The button is disabled while an in-progress swap is using that allowance. This prevents a revocation from causing an executing swap to fail. Wait for that swap to complete or be canceled, then revoke.

Q: Can I revoke only the allowance left by one particular swap?

A: No. On-chain, the allowance is a single total recorded per wallet × asset × authorized contract × chain, and revoking sets that total to zero.

Q: What happens if I don't revoke a residual allowance?

A: Your assets are not at risk. If the amount is sufficient, a later swap in the same direction can reuse it without a new approval, which also saves one approval's network fee. Whether to revoke is your decision, based on your own risk management requirements.

Q: What is the authorized contract?

A: It is the on-chain contract that actually executes the swap. Safeheron only permits interaction with whitelisted contracts that have passed security review.

Q: Why is my allowance list empty?

A: The page only shows allowances that are currently live. If your swaps all completed normally, each allowance was consumed by its transfer — an empty list is expected.

If you have any suggestions or run into any issues, please share them with the Safeheron Support team.

Last updated