Skip to content

Commit

Permalink
fix: PTP-05
Browse files Browse the repository at this point in the history
  • Loading branch information
narayanprusty committed Sep 19, 2023
1 parent 42c565b commit eb36a3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/Tokens/Prime/PrimeLiquidityProvider.sol
Expand Up @@ -162,6 +162,8 @@ contract PrimeLiquidityProvider is AccessControlledV8, PausableUpgradeable {
/**
* @notice Set the prime token contract address
* @param prime_ The new address of the prime token contract
* @custom:event Emits PrimeTokenUpdated event
* @custom:access Only owner
*/
function setPrimeToken(address prime_) external onlyOwner {
_ensureZeroAddress(prime_);
Expand All @@ -175,6 +177,7 @@ contract PrimeLiquidityProvider is AccessControlledV8, PausableUpgradeable {
* @param token_ The list of tokens to claim tokens
* @custom:event Emits TokenTransferredToPrime event
* @custom:error Throw InvalidArguments on Zero address(token)
* @custom:error Throw FundsTransferIsPaused is paused
*/
function releaseFunds(address token_) external {
if (msg.sender != prime) revert InvalidCaller();
Expand Down Expand Up @@ -240,6 +243,7 @@ contract PrimeLiquidityProvider is AccessControlledV8, PausableUpgradeable {
}

/// @notice Get the latest block number
/// @return blockNumber returns the block number
function getBlockNumber() public view virtual returns (uint256) {
return block.number;
}
Expand Down

0 comments on commit eb36a3f

Please sign in to comment.