Skip to content

revamp migration wrt push chain#11

Merged
zaryab2000 merged 22 commits intomainfrom
10-revamp-migration-wrt-push-chain
May 27, 2025
Merged

revamp migration wrt push chain#11
zaryab2000 merged 22 commits intomainfrom
10-revamp-migration-wrt-push-chain

Conversation

@Zartaj0
Copy link
Member

@Zartaj0 Zartaj0 commented May 21, 2025

No description provided.

@Zartaj0 Zartaj0 linked an issue May 21, 2025 that may be closed by this pull request
/// @notice Initializes the contract instead of constructor
/// @param _push The address of the PUSH token
/// @param initialOwner The address of the admin
function initialize(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safety check: initialOwner and push token address must be valid addresses.

) external onlyOwner onlyUnlocked {
require(_to != address(0), "Invalid recipient");

if (_token == address(0)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no fallback or payable functions which allows entry of ETH to the contract. therefore, the logic for recovery of ETH from this contract is redundant.

@@ -0,0 +1,182 @@
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.20;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a fixed consistent version of solidity

@Zartaj0 Zartaj0 force-pushed the 10-revamp-migration-wrt-push-chain branch from 2640492 to 1dde6fd Compare May 27, 2025 07:52
@zaryab2000 zaryab2000 merged commit fb35648 into main May 27, 2025
0 of 2 checks passed
@zaryab2000 zaryab2000 deleted the 10-revamp-migration-wrt-push-chain branch May 27, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revamp Migration w.r.t Push chain

2 participants