Skip to content

Commit

Permalink
Remove duplicate arg from ParanetIncentivesPoolFactoryHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvonimir authored and Zvonimir committed Mar 4, 2025
1 parent 984368d commit c07adfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
7 changes: 1 addition & 6 deletions abi/ParanetIncentivesPoolFactoryHelper.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,13 @@
"inputs": [
{
"internalType": "address",
"name": "storageAddress",
"name": "poolStorageAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "tracToTokenEmissionMultiplier",
"type": "uint256"
},
{
"internalType": "address",
"name": "poolStorageAddress",
"type": "address"
}
],
"name": "deployIncentivesPool",
Expand Down
6 changes: 2 additions & 4 deletions contracts/paranets/ParanetIncentivesPoolFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ contract ParanetIncentivesPoolFactory is INamed, IVersioned, ContractStatus, IIn

address poolAddress = paranetIncentivesPoolFactoryHelper.deployIncentivesPool(
storageAddress,
tracToTokenEmissionMultiplier,
address(storage_)
tracToTokenEmissionMultiplier
);

storage_.initialize();
Expand Down Expand Up @@ -137,8 +136,7 @@ contract ParanetIncentivesPoolFactory is INamed, IVersioned, ContractStatus, IIn

address newPoolAddress = paranetIncentivesPoolFactoryHelper.deployIncentivesPool(
storageAddress,
tracToTokenEmissionMultiplier,
address(storage_)
tracToTokenEmissionMultiplier
);
emit ParanetIncentivesPoolRedeployed(
paranetKCStorageContract,
Expand Down
7 changes: 3 additions & 4 deletions contracts/paranets/ParanetIncentivesPoolFactoryHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ contract ParanetIncentivesPoolFactoryHelper is INamed, IVersioned, ContractStatu
}

function deployIncentivesPool(
address storageAddress,
uint256 tracToTokenEmissionMultiplier,
address poolStorageAddress
address poolStorageAddress,
uint256 tracToTokenEmissionMultiplier
) external onlyContracts returns (address) {
address addr = address(
new ParanetIncentivesPool(
address(hub),
hub.getContractAddress("ParanetKnowledgeMinersRegistry"),
storageAddress,
poolStorageAddress,
hub.getContractAddress("ParanetsRegistry"),
tracToTokenEmissionMultiplier
)
Expand Down

0 comments on commit c07adfc

Please sign in to comment.