Skip to content

Commit

Permalink
remove unnecessary type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Mar 5, 2025
1 parent 9e1c645 commit c3473cb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Facets/ChainflipFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ contract ChainflipFacet is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
// Handle destination calls
if (_bridgeData.hasDestinationCall) {
if (LibAsset.isNativeAsset(_bridgeData.sendingAssetId)) {
IChainflipVault(chainflipVault).xCallNative{
value: _bridgeData.minAmount
}(
chainflipVault.xCallNative{ value: _bridgeData.minAmount }(
dstChain,
encodedDstAddress,
_chainflipData.dstToken,
Expand All @@ -194,7 +192,7 @@ contract ChainflipFacet is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
_chainflipData.cfParameters
);
} else {
IChainflipVault(chainflipVault).xCallToken(
chainflipVault.xCallToken(
dstChain,
encodedDstAddress,
_chainflipData.dstToken,
Expand All @@ -207,16 +205,14 @@ contract ChainflipFacet is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
}
} else {
if (LibAsset.isNativeAsset(_bridgeData.sendingAssetId)) {
IChainflipVault(chainflipVault).xSwapNative{
value: _bridgeData.minAmount
}(
chainflipVault.xSwapNative{ value: _bridgeData.minAmount }(
dstChain,
encodedDstAddress,
_chainflipData.dstToken,
_chainflipData.cfParameters
);
} else {
IChainflipVault(chainflipVault).xSwapToken(
chainflipVault.xSwapToken(
dstChain,
encodedDstAddress,
_chainflipData.dstToken,
Expand Down

0 comments on commit c3473cb

Please sign in to comment.