Skip to content

Commit

Permalink
docs upd
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkron committed Nov 12, 2024
1 parent f2bc70b commit e9653ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hardhat/contracts/ParentPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ contract ParentPool is IParentPool, CCIPReceiver, ParentPoolCommon, ParentPoolSt
}

/*
* @notice Allows liquidity providers to initiate the withdrawal which can then be completed via completeWithdrawal()
* @notice Allows liquidity providers to initiate the withdrawal
* @notice A cooldown period of WITHDRAW_DEADLINE_SECONDS needs to pass before the withdrawal can be completed.
* @param _lpAmount the amount of LP tokens to be burnt
*/
Expand Down Expand Up @@ -690,7 +690,7 @@ contract ParentPool is IParentPool, CCIPReceiver, ParentPoolCommon, ParentPoolSt
s_withdrawAmountLocked += ccipReceivedAmount;

if (request.remainingLiquidityFromChildPools < 10) {
_completeWithdraw(withdrawalId);
_completeWithdrawal(withdrawalId);
}
}

Expand All @@ -707,7 +707,7 @@ contract ParentPool is IParentPool, CCIPReceiver, ParentPoolCommon, ParentPoolSt
* @notice Function to process the withdraw request
* @param withdrawalId the id of the withdraw request
*/
function _completeWithdraw(bytes32 withdrawalId) internal {
function _completeWithdrawal(bytes32 withdrawalId) internal {
WithdrawRequest storage request = s_withdrawRequests[withdrawalId];
uint256 amountToWithdraw = request.amountToWithdraw;
address lpAddress = request.lpAddress;
Expand Down

0 comments on commit e9653ce

Please sign in to comment.