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
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