Skip to content

Commit

Permalink
missed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matYang committed Aug 12, 2024
1 parent ffc9e4d commit 11788d5
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions contracts/src/v0.8/ccip/pools/USDC/USDCTokenPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,31 @@ contract USDCTokenPool is TokenPool, ITypeAndVersion {
emit ConfigSet(address(tokenMessenger));
}

/// @inheritdoc IPoolV1
function lockOrBurn(Pool.LockOrBurnInV1 calldata lockOrBurnIn) {
_lockOrBurn(lockOrBurnIn);
/// @notice Burns USDC in the pool
/// @dev invokes underlying CCTP protocol
function lockOrBurn(Pool.LockOrBurnInV1 calldata lockOrBurnIn)
external
override
returns (Pool.LockOrBurnOutV1 memory lockOrBurnOut)
{
return _lockOrBurn(lockOrBurnIn);
}

/// @inheritdoc IPoolV1
function _releaseOrMint(Pool.ReleaseOrMintInV1 calldata releaseOrMintIn)
_releaseOrMint(releaseOrMintIn);
/// @notice Mints USDC to the recipient
/// @dev invokes underlying CCTP protocol
function releaseOrMint(Pool.ReleaseOrMintInV1 calldata releaseOrMintIn)
external
returns (Pool.ReleaseOrMintOutV1 memory)
{
return _releaseOrMint(releaseOrMintIn);
}


/// @notice Burn the token in the pool
/// @dev emits ITokenMessenger.DepositForBurn
/// @dev Assumes caller has validated destinationReceiver
function _lockOrBurn(Pool.LockOrBurnInV1 calldata lockOrBurnIn)
internal
virtual
override
returns (Pool.LockOrBurnOutV1 memory)
{
_validateLockOrBurn(lockOrBurnIn);
Expand Down Expand Up @@ -152,7 +159,6 @@ contract USDCTokenPool is TokenPool, ITypeAndVersion {
function _releaseOrMint(Pool.ReleaseOrMintInV1 calldata releaseOrMintIn)
internal
virtual
override
returns (Pool.ReleaseOrMintOutV1 memory)
{
_validateReleaseOrMint(releaseOrMintIn);
Expand Down

0 comments on commit 11788d5

Please sign in to comment.