Trust Wallet has ended support for NIM as of Sept 15. Withdraw your NIM and move to Nimiq Pay. Trust Wallet recovery phrases aren’t compatible with Nimiq Wallet, use Nimiq Pay instead.

Gas Abstraction Update

In September, we paused gas-abstracted stablecoin (USDC and USDT) transfers and swaps after an exploit in our legacy swap contracts on Polygon. We’ve replaced our OpenGSN-based integration with a new gas abstraction contract audited by OpenZeppelin, and transfers are now back in beta in the Nimiq Wallet. We expect full transfers to be back in early December.

byTeam Nimiq
Gas Abstraction Update

In March 2023, we released support for USDC on Polygon to the Nimiq Wallet, so you could hold and send USDC without needing MATIC (now POL), Polygon's native token, to pay fees. Later, we explained how it works under the hood in A Look into Nimiq Wallet's Integration of USDC through OpenGSN and Uniswap. The same setup later powered USDT in the Nimiq Wallet and Nimiq Pay.

The technology enabling this feature is called gas abstraction. Every transaction on Polygon has a network fee, normally paid in POL. Gas abstraction lets you pay it in the stablecoin you're sending instead, so you only need to hold one token. Until September, you signed the transfer, and an OpenGSN relay submitted it to Polygon and paid the fee in POL. In the same transaction, a Polygon smart contract swapped a small part of your stablecoin to POL on Uniswap to cover the network and relay fees.

In September, we switched off gas abstraction and decided to replace our OpenGSN-based integration. Below, we cover what happened, how we brought this feature back to the Nimiq ecosystem, and what it means for your funds.

What happened

On September 16, a missing authorization check in our legacy smart contracts for gas-abstracted swaps on Polygon was exploited. The next day, we disabled these contracts and paused everything that depends on them:

  • sending USDC and USDT in the Nimiq Wallet
  • sending USDT in Nimiq Pay
  • swaps to and from USDC and USDT in the Nimiq Wallet

NIM and BTC transactions and swaps work as usual and are not affected.

This update took longer than we expected. It now includes our full post-mortem and the audit results.

Post-mortem

Root cause

In short, these contracts didn't properly verify that a request was signed by the user before moving tokens. An attacker used this to send forged requests and take the stablecoins from the address that provides liquidity for swaps. The full technical details are in the post-mortem linked below.

What was lost

The exploit resulted in a loss of about $50,496 in stablecoins (USDC, USDT and USDC.e). Almost all of it came from the swap liquidity address operated by Green Ocean, the independent liquidity provider that powers Fastspot swaps in the Nimiq Wallet. The remaining $32.32 belonged to two Nimiq Wallet users, whose expired swaps from September 2025 were claimed by a second actor using the same flaw. No other users lost funds.

Where the funds went

Within minutes, the attacker swapped the stolen stablecoins to USDC, bridged them to Ethereum, and converted them to DAI. On October 29, the funds were moved into Railgun, a privacy pool, where they can no longer be traced.

The full post-mortem, with every transaction, is available here.

Replacing OpenGSN

Gas abstraction lets you send USDC and USDT on Polygon without holding POL: the fee is paid in the stablecoin you send. Following the incident, we decided to replace our OpenGSN integration. Instead, we wrote a new gas abstraction contract that works with a relay run by Nimiq. For you, sending USDC and USDT will work exactly as before, without needing POL. The new contract is also simpler, as it no longer needs a Uniswap step to cover fees.

Longer term, the protocol roadmap includes a decentralized successor to OpenGSN, where you pay fees in any token without relying on a sponsor, a milestone labeled as Ah.2 .

OpenZeppelin, a professional security auditing company specialized in smart contracts, has completed an independent security audit of the new contract. It found no critical, high, medium or low severity issues, only five informational notes, which we’ve addressed. The audit also confirms that the new contract never holds your funds, can't be upgraded, and gives its owner no access to user funds. You can read the full report here.

The new contract is now live in the Nimiq Wallet as a beta version.

Your funds

The Nimiq Wallet and Nimiq Pay are non-custodial, so your USDC and USDT stay under your control. For now, sending stablecoins is limited during the beta version. Transfers in the Nimiq Wallet are capped at $20, and sending USDT in Nimiq Pay is still paused.

If you need to move your stablecoins now, you can import your Nimiq Wallet Recovery Words into another Polygon wallet, such as MetaMask. Depending on the wallet, you may need a small amount of POL to pay fees.

What's next

We expect full gas-abstracted USDC and USDT transfers to be back in early December, once testing is complete. We'll announce it on our channels when it's live. Stablecoin swaps need more work on a separate part of the system and will come back later. We'll share a date once we have one.

Thank you for your continued support while we work through this update.

Pura Vida

Nimiq