Skip to content

fix: remove the HTS allowance from the LOCK/UNLOCK unlock path - #2

Open
dolfje wants to merge 1 commit into
hedera-itsfrom
feat/dont_use_allowance
Open

fix: remove the HTS allowance from the LOCK/UNLOCK unlock path#2
dolfje wants to merge 1 commit into
hedera-itsfrom
feat/dont_use_allowance

Conversation

@dolfje

@dolfje dolfje commented Aug 5, 2026

Copy link
Copy Markdown

LOCK/UNLOCK token managers granted the service a finite, non-replenishable HTS allowance and then spent it down on every withdrawal. Once exhausted, giveToken reverts with SPENDER_DOES_NOT_HAVE_ALLOWANCE and the custodied pool becomes unredeemable, recoverable only by an implementation upgrade.

This PR removes the allowance from the unlock path entirely. The token manager now pushes its own balance instead of the service pulling it, which needs no approval at all.

@dolfje
dolfje requested a review from rista404 August 5, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant