Skip to content

fix(crypto): route settlement through USDT fee slot (testnet workaround) - #100

Merged
manoahLinks merged 1 commit into
mainfrom
feat/crypto-settlement
Jul 18, 2026
Merged

fix(crypto): route settlement through USDT fee slot (testnet workaround)#100
manoahLinks merged 1 commit into
mainfrom
feat/crypto-settlement

Conversation

@manoahLinks

Copy link
Copy Markdown
Contributor

The deployed Base Sepolia Diamond has the real USDC token registered under the USDT (4) FeeType slot; USDC (5) is unset, so mintTicket(…, USDC, …) reverts TokenAddressZero() and Circle never submits the mint (approve lands, allowance untouched, nothing settles).

Route crypto publish + settlement through SETTLEMENT_FEE_TYPE_NAME (now 'USDT' = slot 4), which resolves to the USDC token on-chain, so approve + mintTicket succeed. Publish sets the fee under the same slot, keeping getAllFees/feeEnabled consistent.

TEMPORARY: revert SETTLEMENT_FEE_TYPE_NAME to 'USDC' once the Diamond is redeployed with USDC (5) mapped to the USDC address. Requires re-publishing events (existing ones have the fee under slot 5). Tracked in #96.

The deployed Base Sepolia Diamond has the real USDC token registered under
the USDT (4) FeeType slot; USDC (5) is unset, so mintTicket(…, USDC, …)
reverts TokenAddressZero() and Circle never submits the mint (approve lands,
allowance untouched, nothing settles).

Route crypto publish + settlement through `SETTLEMENT_FEE_TYPE_NAME` (now
'USDT' = slot 4), which resolves to the USDC token on-chain, so approve +
mintTicket succeed. Publish sets the fee under the same slot, keeping
getAllFees/feeEnabled consistent.

TEMPORARY: revert `SETTLEMENT_FEE_TYPE_NAME` to 'USDC' once the Diamond is
redeployed with USDC (5) mapped to the USDC address. Requires re-publishing
events (existing ones have the fee under slot 5). Tracked in #96.
@manoahLinks
manoahLinks merged commit a4f5fc7 into main Jul 18, 2026
3 checks passed
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