Skip to content

Commit

Permalink
feat: LayerZeroOFT decoder verifies the refundReceiver. Deletes Starg…
Browse files Browse the repository at this point in the history
…ateV2 Decoder
  • Loading branch information
junkim012 committed Oct 2, 2024
1 parent 5721dcc commit 496c468
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract LayerZeroOFTDecoderAndSanitizer is BaseDecoderAndSanitizer {
view
returns (bytes memory)
{
if (bytes32ToAddress(_sendParam.to) != boringVault) {
if (bytes32ToAddress(_sendParam.to) != boringVault || refundReceiver != boringVault) {
revert LayerZeroOFTDecoderAndSanitizer_NotVault();
}
if (_sendParam.composeMsg.length > 0) {
Expand Down
46 changes: 0 additions & 46 deletions src/base/DecodersAndSanitizers/StargateV2DecoderAndSanitizer.sol

This file was deleted.

0 comments on commit 496c468

Please sign in to comment.