Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rstout committed Dec 11, 2024
1 parent 6e89ee6 commit 4f4fb5f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions contracts/src/v0.8/ccip/test/mocks/MockLBTCTokenPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,9 @@ contract MockLBTCTokenPool is TokenPool, ITypeAndVersion {
destPoolData = _data;
}

/// @notice Burn the token in the pool
/// @dev emits ITokenMessenger.DepositForBurn
/// @dev Assumes caller has validated destinationReceiver
function lockOrBurn(
Pool.LockOrBurnInV1 calldata lockOrBurnIn
) public virtual override returns (Pool.LockOrBurnOutV1 memory) {
// bytes memory payload;
// bytes memory destPoolData;
// payload = abi.encodePacked(hex"1234abcd");
// destPoolData = abi.encode(sha256(payload));

IBurnMintERC20(address(i_token)).burn(lockOrBurnIn.amount);
emit Burned(msg.sender, lockOrBurnIn.amount);

Expand All @@ -55,9 +47,6 @@ contract MockLBTCTokenPool is TokenPool, ITypeAndVersion {
function releaseOrMint(
Pool.ReleaseOrMintInV1 calldata releaseOrMintIn
) public virtual override returns (Pool.ReleaseOrMintOutV1 memory) {

// TODO: validate releaseOrMintIn.offchainTokenData?
// Mint to the receiver
IBurnMintERC20(address(i_token)).mint(releaseOrMintIn.receiver, releaseOrMintIn.amount);

emit Minted(
Expand Down

0 comments on commit 4f4fb5f

Please sign in to comment.