Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinagill15 committed Aug 13, 2024
1 parent 94b5598 commit 8c3dafe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/oft-evm/contracts/NativeOFTAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ abstract contract NativeOFTAdapter is OFTCore {
uint256 remainingMsgValue = msg.value - _sendParam.amountLD;
feeWithExtraAmount.nativeFee = remainingMsgValue;

// @dev Applies the token transfers regarding this send() operation.
// - amountSentLD is the amount in local decimals that was ACTUALLY sent/debited from the sender.
// - amountReceivedLD is the amount in local decimals that will be received/credited to the recipient on the remote OFT instance.
(uint256 amountSentLD, uint256 amountReceivedLD) = _debit(
msg.sender,
_sendParam.amountLD,
Expand All @@ -108,6 +105,7 @@ abstract contract NativeOFTAdapter is OFTCore {

// @dev Sends the message to the LayerZero endpoint and returns the LayerZero msg receipt.
msgReceipt = _lzSend(_sendParam.dstEid, message, options, feeWithExtraAmount, _refundAddress);

// @dev Formulate the OFT receipt.
oftReceipt = OFTReceipt(amountSentLD, amountReceivedLD);

Expand Down

0 comments on commit 8c3dafe

Please sign in to comment.