Commit 86a08b76 authored by Maurelian's avatar Maurelian Committed by GitHub

fix(ctb): Edit inaccurate comment about refunds (#3045)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 5d4674ef
...@@ -312,8 +312,9 @@ abstract contract StandardBridge is Initializable { ...@@ -312,8 +312,9 @@ abstract contract StandardBridge is Initializable {
} catch { } catch {
// Something went wrong during the bridging process, return to sender. // Something went wrong during the bridging process, return to sender.
// Can happen if a bridge UI specifies the wrong L2 token. // Can happen if a bridge UI specifies the wrong L2 token.
// We reverse both the local and remote token addresses, as well as the to and from // We reverse the to and from addresses to make sure the tokens are returned to the
// addresses. This will preserve the accuracy of accounting based on emitted events. // sender on the other chain and preserve the accuracy of accounting based on emitted
// events.
_initiateBridgeERC20Unchecked( _initiateBridgeERC20Unchecked(
_localToken, _localToken,
_remoteToken, _remoteToken,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment