aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
327 stars 80 forks source link

Feat(xcc): Use native bridge logic to unwrap wNEAR #867

Closed birchmd closed 10 months ago

birchmd commented 10 months ago

Description

Since #750 has been merged, the ERC-20 connector is able to unwrap wrapped Near tokens into Near native tokens. This logic was duplicated by the XCC router, but in this PR we remove the logic from XCC and use the bridge's unwrapping instead. This has a nice side-effect of saving us 20 Tgas from the XCC overhead.

Performance / NEAR gas cost considerations

No impact on regular transactions, 20 Tgas improvement to XCC transactions.

Testing

Existing tests. Specifically this relies heavily on the upgrade test introduced in #866